Fix an Exchange GUID Mismatch During Microsoft 365 Mailbox Migration
Question details
Resolve a mailbox migration failure caused by different ExchangeGUID values on the on-premises mailbox and the Exchange Online mail user.

- Product
- Microsoft Exchange Server and Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator is migrating an on-premises mailbox to Microsoft 365 after an online mailbox was removed and recreated.
- Observed behavior
- The migration can fail because the ExchangeGUID on the source mailbox does not match the value on the target mail user.
Identify the affected user and confirm that you have permission to inspect recipients in both Exchange environments. Open the on-premises Exchange Management Shell and connect to Exchange Online PowerShell.
Compare and correct the target mail user's ExchangeGUID
Use this approach when the source mailbox and target mail user have different GUIDs and the target attribute can be managed in Exchange Online.
In the on-premises Exchange Management Shell, run `Get-Mailbox -Identity UserName | Format-List Identity,ExchangeGuid` and record the ExchangeGuid value. Replace `UserName` with the affected mailbox identity.
In Exchange Online PowerShell, run `Get-MailUser -Identity UserName | Format-List Identity,ExchangeGuid` and compare the value with the on-premises mailbox GUID. Confirm that the returned identity is the intended migration target.
If the values differ and the target can be managed in Exchange Online, run `Set-MailUser -Identity UserName -ExchangeGuid CorrectGUID`, replacing `CorrectGUID` with the source mailbox's recorded value. If the recipient is directory-synchronized or the command is blocked, check the authoritative source and synchronization configuration before making changes; contact Microsoft support if needed.
Run `Get-MailUser -Identity UserName | Format-List Identity,ExchangeGuid` again and confirm that the value matches the source. Check directory synchronization where applicable, then use the Exchange admin center's Migration page to resume or retry the affected batch.

Document your mailbox migration with WPS Office
WPS Office is a free, lightweight alternative for preparing migration checklists and reports. Its familiar interface and Microsoft Office format compatibility make it easy to move existing documents and spreadsheets into your workflow. It does not repair Exchange mailbox migrations.

Frequently Asked Questions
Why can an ExchangeGUID mismatch happen after a mailbox is recreated?
Removing and recreating an Exchange Online mailbox can leave a target recipient with a GUID that differs from the on-premises mailbox. Compare the values with Get-Mailbox on-premises and Get-MailUser in Exchange Online.
Which GUID should the target mail user have?
For the mismatch described here, compare the target mail user's ExchangeGuid with the source on-premises mailbox's ExchangeGuid. When an update is supported, use the source mailbox value for the target mail user.
What if Set-MailUser is blocked for a synchronized recipient?
Check which environment is authoritative for the recipient and review the directory synchronization configuration before changing attributes. Do not assume a cloud-side change will persist; contact Microsoft support if the correct procedure is unclear.
What should I do if Get-MailUser cannot find the target?
Verify the identity and recipient type in Exchange Online PowerShell or the Exchange admin center. A target that is already a mailbox or is missing is not the mail user described in this procedure and requires further investigation.




