Others

Can Azure AD Connect Write ExchangeGUID Back to Active Directory?

Tauseeq MagsiTauseeq Magsi Nov 27, 2026 868 views

Question details

Determine whether Azure AD Connect can write the ExchangeGUID of a cloud-created mailbox back to on-premises Active Directory.

Can Azure AD Connect Write ExchangeGUID Back to 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.
Before you start

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.

Solution 1Recommended

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.

1
Check the cloud mailbox GUID

Connect to Exchange Online PowerShell and run Get-Mailbox <cloud-mailbox-identity> | Format-List ExchangeGUID. Copy the displayed GUID.

2
Check the remote mailbox 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.

3
Apply the cloud GUID

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.

4
Verify the update

Run Get-RemoteMailbox <remote-mailbox-identity> | Format-List ExchangeGUID again and compare the result with the Exchange Online Get-Mailbox output.

Set the remote mailbox ExchangeGUID manually
An existing remote mailbox is required: Set-RemoteMailbox updates an existing on-premises remote mailbox. If none exists, follow your organization's supported hybrid mailbox provisioning process before applying the GUID.
Free Microsoft Office alternative

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.

Document ExchangeGUID verification and update procedures in WPS WriterOpen and edit Microsoft Word DOCX and Excel XLSX filesUse a familiar interface to migrate existing Office documentationWork with a free, lightweight office suite
microsoft office alternative - wps office

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.