When you use the Exchange Online Portal to move a cloud mailbox to on-premise (aka Office 365 Offboarding), you can either move
- Primary Mailbox and the existing Archive
- Primary Mailbox without moving the Archive
When you select the second option, the move request fails because of the missing archive target delivery domain. The required attribute is not exposed to the Exchange Online Administrative Center.
The required option -ArchiveDomain can only be applied when using Remote PowerShell to Exchange Online.
The following lines describe how to move the primary mailbox to your on-premise Exchange while keeping the archive mailbox in Office 365:
# UPN of user to migrate to Exchange Online $User = "UserToMigrate@mcsmemail.de" # FQDN of configured migration endpoint $RemoteHost = "MigrationEndpoint.mcsmemail.de" # on-premises target domain $TargetDelivery = "mcsmemail.de" # EOL archive domain $ArchiveDomain = "TENANT.onmicrosoft.com" # on-premises target mailbox database name $TargetDatabase = "MBX-DB01" # On-premises credentials to access the target mailbox/on-premises Exchange $OnPremCred = Get-Credential # New offboarding move request with automatic completion of the request New-MoveRequest -Identity $User -RemoteHostName $RemoteHost -RemoteCredential $OnPremCred -TargetDeliveryDomain $TargetDelivery -ArchiveDomain $ArchiveDomain -PrimaryOnly -SuspendWhenReadyToComplete:$false -Outbound -RemoteTargetDatabase $TargetDatabase
Your scripts can go from here.
Do you need assistance with your Exchange Server setup? You have questions about your Exchange Server infrastructure and going hybrid? Are you interested in what Exchange Server 2016 offers for your environment?