Migrate Mailbox to 365 using PowerShell

Migrating mailboxes to 365 using the GUI options or the website can be time consuming, especially if you have hundreds to do. (Of course, if you was doing batches of mailboxes you’d change this PowerShell to import from a file)

The following, connects to your on premise exchange server, and then connects to your 365 tenant and initiates the transfer of the mailbox.

Note – the on premise exchange server (in my case at least) required credentials in the DOMAIN\USERNAME format, the 365 admin credentials are passed in full UPN format.

Once the above job has been queued, your PowerShell will return to the prompt. If you’d like to get the status of this, or any other move requests currently taking place you can use the Get-MoveRequest commandlet and pipe it to Get-MoveRequestStatistics as per the below

Read More