Can Azure AD Connect Write ExchangeGUID Back to Active Directory?
Question details
Determine whether Azure AD Connect can write the ExchangeGUID of a cloud-created mailbox back to on-premises Active Directory.

- Product
- Azure AD Connect and Microsoft Exchange hybrid
- Device & OS
- not provided
- Scenario
- An administrator needs the on-premises remote mailbox to have the same ExchangeGUID as its Exchange Online mailbox.
- Observed behavior
- Azure AD Connect does not generally perform automatic ExchangeGUID writeback for cloud-created mailboxes.
Confirm that the cloud mailbox and its corresponding on-premises remote mailbox are the correct pair. You need Exchange Online PowerShell access to read the cloud mailbox and on-premises Exchange Management Shell permissions to view and update the remote mailbox.
Set the remote mailbox ExchangeGUID manually
Use this approach when an existing on-premises remote mailbox needs to match its Exchange Online mailbox.
Azure AD Connect does not generally provide automatic ExchangeGUID writeback for this scenario. Retrieve the GUID from Exchange Online and apply it to the corresponding on-premises remote mailbox.
Connect to Exchange Online PowerShell and run Get-Mailbox <cloud-mailbox-identity> | Format-List ExchangeGUID. Copy the displayed GUID.
Open the on-premises Exchange Management Shell and run Get-RemoteMailbox <remote-mailbox-identity> | Format-List ExchangeGUID. Confirm that this is the remote mailbox corresponding to the cloud mailbox.
In the on-premises Exchange Management Shell, run Set-RemoteMailbox <remote-mailbox-identity> -ExchangeGUID <cloud-mailbox-GUID>, replacing the placeholders with the remote mailbox identity and copied GUID.
Run Get-RemoteMailbox <remote-mailbox-identity> | Format-List ExchangeGUID again and compare the result with the Exchange Online Get-Mailbox output.

Document Exchange hybrid procedures with WPS Office
WPS Office is a free, lightweight alternative for writing and sharing administration procedures. Its familiar interface and Microsoft Office format support make it easy to move existing documentation into WPS. It does not change Exchange or Azure AD Connect settings.

Frequently Asked Questions
Does Azure AD Connect automatically write the ExchangeGUID back for a cloud-created mailbox?
Not generally. For this scenario, retrieve the GUID with Get-Mailbox in Exchange Online PowerShell and set it on the corresponding on-premises remote mailbox with Set-RemoteMailbox.
Where do I run Get-Mailbox and Set-RemoteMailbox?
Run Get-Mailbox in a connected Exchange Online PowerShell session. Run Get-RemoteMailbox and Set-RemoteMailbox in the on-premises Exchange Management Shell.
How do I check whether the GUIDs match?
Run Get-Mailbox <cloud-mailbox-identity> | Format-List ExchangeGUID in Exchange Online, then run Get-RemoteMailbox <remote-mailbox-identity> | Format-List ExchangeGUID on-premises. Compare the two values.
What if there is no on-premises remote mailbox?
Set-RemoteMailbox cannot update a remote mailbox that does not exist. Follow your organization's supported Exchange hybrid provisioning process to establish the appropriate on-premises object first.




