Unable to Migrate O365 user back to Exchange On-Prem – ERROR: Cannot find a recipient that has mailbox GUID
When you try to migrate an O365 mailbox back to Exchange on-premise, you may run into this error message.
Below is the solution for it.
Set the ExchangeGUID property on the associated on-premises remote mailbox before you move the mailbox to the on-premises organization. To do this, follow these steps:
- Open the Exchange Management Shell on the on-premises server, and then run the following command to check whether the ExchangeGUID property of the on-premises remote mailbox is set:
Get-RemoteMailbox <alias of cloud mailbox to move> | Format-List ExchangeGUID
Note If the ExchangeGUID property returns all zeros, the value isn’t stamped on the on-premises remote mailbox.
- Open Windows PowerShell (don’t use the Exchange Management Shell), and then connect to Exchange Online. For more info about how to do this, see Connect to Exchange Online Using Remote PowerShell.
Connect to Exchange On-line
- From the PowerShell console on an Exchange 2010 server:
$Cred = Get-Credential
$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection
- Type in your domain admin credentials with username of <username>@company.com
- Type in your domain admin credentials with username of domain\<username>
- Run the following command to retrieve the value of ExchangeGUID property of the mailbox that you want to move.
Get-Mailbox <MailboxName> | Format-List ExchangeGUID
- Run the following command to set the value of the ExchangeGUID property on the on-premises remote mailbox to the value that you retrieved in step 3:
Set-RemoteMailbox <MailboxName> -ExchangeGUID <GUID>
- Force directory synchronization. For more info about how to do this, see the “Force directory synchronization” section of Synchronize your directories.
Once all is done, you can retry your O365 mailbox move back to Exchange on-premise.