When it comes to the setup and configuration of the Microsoft 365 Cross-Tenant Migration Tools, the first part is obviously the initial configuration and testing. When you get past that and everything is working, the next phase is to get the users ready for migration.
To do that the users on the Source Tenant need to be represented as MailUser objects in the Target Tenant. They need to have the ExchangeGUID applied to them to match the Source Tenant and also the X500 address must be added as an appropriate email alias in the object.
Note that it is the matching of the ExchangeGUID that links the Source and Target account. It has nothing to do with the UPN or SAMAccountName.
Here in this video I present to you how I have made it easier to create these objects, using my M365 Discovery Tool. The tool creates a full output of all the details around the Tenant as far as content goes. On the Mailbox page in the report it can add all the PowerShell commands necessary to create the MailUser objects and apply all the right settings into them.
The video can be found here.
In the video I do talk about the PowerShell command necessary to create the Batch automatically so here it is.
New-MigrationBatch -Name "Batch Name -SourceEndpoint "Migration EndPoint 1" -CSVData([System.IO.File]::ReadAllBytes('c:\scripts\batch1.csv')) -TargetDeliveryDomain xxxxxxx.onmicrosoft.com
Now obviously you need to update the line with your own details, but you get the idea of what I am talking about here.
Thanks for reading this and watching the video. The link to the Discovery Tool is here.
Please remember to subscribe to the YouTube Channel
https://youtube.com/thecloudgeezer?sub_confirmation=1
Have an awesome day, whereever in the World you are.
Mark – The Cloud Geezer