When you use the Exchange Online Portal to move a cloud mailbox to on-premise (aka Office 365 Offboarding) you can either move
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 opn-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-premise target domain
$TargetDelivery = "mcsmemail.de"
# EOL archive domain
$ArchiveDomain = "TENANT.onmicrosoft.com"
# on-premise target mailbox database name
$TargetDatabase = "MBX-DB01"
# Onpremise credentials to access the target mailbox/on-premise 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.
You need assistance with your Exchange Server setup? You have questions about your Exchange Server infrastructure and going hybrid? You are interested in what Exchange Server 2016 has to offer for your environment?
Contact me at email@example.com
Follow at https://twitter.com/stensitzki