Migration Batch

%3CLINGO-SUB%20id%3D%22lingo-sub-740630%22%20slang%3D%22en-US%22%3EMigration%20Batch%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-740630%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Experts%3C%2FP%3E%3CP%3EI%20am%20migrating%20onprem%20users%20to%20cloud%2C%20in%20every%20migration%20batch%20i%20have%2050%20users.%3CBR%20%2F%3Elets%20say%20user1%20is%20in%20migration%20batch1%20and%20user2%20is%20in%20batch2.%20i%20have%20csv%20file%20in%20the%20below%20format.%3C%2FP%3E%3CP%3Eemailaddress%3CBR%20%2F%3Euser1%40contoso.com%3CBR%20%2F%3Euser2%40contoso.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20import%20this%20csv%20file%20and%20get%20the%20users%20status.%20Experts%20help%20me%20powershell%20syntax%20to%20get%20the%20below%20information%3CBR%20%2F%3EIdentity%20Status(sync)%20Items%20Synced%2C%20ItemsSkipped%3CBR%20%2F%3Euser1%20Synced%3CBR%20%2F%3Euser2%20Failed%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-740630%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOn-Premises%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-772333%22%20slang%3D%22en-US%22%3ERe%3A%20Migration%20Batch%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-772333%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144450%22%20target%3D%22_blank%22%3E%40Roger%20Roger%3C%2FA%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20dont%20have%20to%20import%20CSV%20just%20for%202%20users%20%2C%20if%20it%20had%20been%20multiple%20or%20say%2020-30%20at%20a%20time%20you%20wanted%20to%20check%20and%20export%20to%20showcasem%20then%20probably%20it%20would%20be%20better%20(Your%20choice%20!!)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20simple%20paste%202%20liner%20command%20and%20this%20should%20be%20good%20enough%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-migrationuserstatistics%20user1%40domain.com%20%7C%20Select%26nbsp%3B%3CSPAN%3EIdentity%20%2C%20Status%20%2C%20ItemsSynced%2C%20ItemsSkipped%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Esame%20way%20for%20User%202%20as%20well%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ECheers%20!!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAnkit%20Shukla%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hi Experts

I am migrating onprem users to cloud, in every migration batch i have 50 users.
lets say user1 is in migration batch1 and user2 is in batch2. i have csv file in the below format.

emailaddress
user1@contoso.com
user2@contoso.com

 

I want to import this csv file and get the users status. Experts help me powershell syntax to get the below information
Identity Status(sync) Items Synced, ItemsSkipped
user1 Synced
user2 Failed

1 Reply
Highlighted

@Roger Roger  

 

You dont have to import CSV just for 2 users , if it had been multiple or say 20-30 at a time you wanted to check and export to showcasem then probably it would be better (Your choice !!)

 

You can simple paste 2 liner command and this should be good enough

 

Get-migrationuserstatistics user1@domain.com | Select Identity , Status , ItemsSynced, ItemsSkipped 

 

same way for User 2 as well

 

Cheers !!

Ankit Shukla