This page is not a complete process, and does not make sense for every migration scenario. The info here is useful to me, for my migration scenarios, and is used more as a “reminder” of what steps to follow, rather than to be relied on as ultimate truth. Make sure you understand what you're doing and don't blame me if you break it :)
Keep in mind: Office 2016 doesn't connect to Exchange 2007 (eg on SBS 2008) - see Exchange Server Supportability Matrix
Follow my instructions to Setting up AD Sync for Office 365
Run the following to give the Administrator user permissions to the Exchange mailboxes in the source Exchange server:
Get-Mailbox -ResultSize Unlimited | Add-MailboxPermission -AccessRights FullAccess -User MigrationWiz
Run the following to give the admin user permissions required to migrate mailboxes - this affects the destination (Office 365):
$cred = Get-Credential $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $cred -Authentication Basic -AllowRedirection Import-PSSession $session Get-Mailbox -ResultSize Unlimited | Add-MailboxPermission -AccessRights FullAccess -Automapping $false -User admin Remove-PSSession $session
First, set up the connector in Migration Wiz. Then do the following for each mailbox to be migrated:
Then after all of the mailbox data has been migrated, you're ready to plan the cutover.
Now for the cutover:
If using a different server for the SMTP relay:
Otherwise, After you've confirmed that nobody is using Outlook to connect to the Exchange server:
Make sure you have done all the steps to remove autodiscover above. You will not be able to run the commands after you remove Exchange, and that may cause problems
Everything below this point is untested. Use at your own risk
Remember you will have to remove mailbox only not the AD account, if you delete the Mailbox it will delete the AD account as well.
Best option you have is, Disable all the Mailbox on the server and let it purge from Disconnected mailbox. If you want to force it instantly then run Clean-Mailbox.