Exchange has 5 types of system mailboxes:
- Discovery Search
- Arbitration
- AuditLog
- Public Folder
- Monitoring
You cannot delete a mailbox database until all system mailboxes are migrated from it.
Migrate Arbitration Mailboxes
Get a list of Arbitration mailboxes
Get-Mailbox -Arbitration | fl Name, ServerName
Start a move request for these mailboxes
Get-Mailbox -Arbitration | New-MoveRequest -TargetDatabase <Database Name>
Another move example:
Get-Mailbox -Database <Database Name> -Arbitration | New-MoveRequest -TargetDatabase <Database Name>
Migrate AuditLog Mailbox
Get-Mailbox -Database <Database Name> -AuditLog | New-MoveRequest -TargetDatabase <Database Name>
Migrate Public Folder Mailbox
Get-Mailbox -Database <Database Name> -PublicFolder | New-MoveRequest -TargetDatabase <Database Name>
Migrate Discovery Search Mailbox
Get-Mailbox "DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}" | New-MoveRequest -TargetDatabase <Database Name>
Migrate Monitoring Mailboxes
Get-Mailbox -Database <Database Name> -Monitoring | New-MoveRequest -TargetDatabase <Database Name>
Clean Up Move Requests
Check the status of existing move requests
Get-MoveRequest | Get-MoveRequestStatistics
Remove completed move requests
Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest
Migration to O365
To migrate a mailbox from on-prem to O365
Step 1: Connect to Exchange Online via PowerShell
$UserCredential = Get-Credential
Enter O365 tenant credentials when prompted.
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
You are now connected to Exchange Online via PowerShell
Step 2: Move Mailbox to Exchange Online via PowerShell
$OnPremAdmin = Get-Credential
Enter your on-prem administrator credentials when prompted.
New-MoveRequest -Identity "UPN of mailbox to be migrated" -Remote -RemoteHostName "FQDN of your on-prem server e.g. mail.yourdomain.com" -RemoteCredential $OnPremAdmin -TargetDeliveryDomain "yourdomain.mail.onmicrosoft.com"
The mailbox is now queued for migration.