Thursday, September 21, 2023

Easily Create MailUser Objects

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

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

Have an awesome day, whereever in the World you are.

Mark – The Cloud Geezer

Mark Rochester
Mark Rochester
Mark currently works in the cloud space assisting large companies to migrate from either on premises to the cloud, or cloud to cloud. His experience with Enterprise migrations spans more than 25 years which basically makes him old. However, with all the oldness creeping up he still finds technology massively exciting. Please reach out for a chat anytime you would like. :-)

Related Articles

Stop Microsoft Teams Sprawl

Anybody that has come into an organization and looked at the Teams Admin Center, had a heart attack because there are so many Teams...

Microsoft 365 Workload Activity Report

Well that's a pretty boring title and an even more boring name for a script. However the output is definitely not boring as it...

Migrate GoDaddy M365 Email to a Full M365 Tenant

We do come across this scenario whereby the GoDaddy M365 Email option has been selected when you register your domain and you end up...

Stay Connected

- Advertisement -

Latest Articles