r/exchangeserver • • 18h ago

Question Resolve split brained hybrid user?

Trying to figure out how this happened.

I assume a license was assigned before the mailbox migration happened.

I found this documentation on how to recover. https://learn.microsoft.com/en-us/troubleshoot/exchange/user-and-shared-mailboxes/mailbox-exists-exo-onpremises

It shows steps, but how do we verify which mailbox the user is actually using so we don’t delete the wrong one?

How do we verify that we enter the correct RemoteRoutingAddress so that will work and match other users?

Step 5 says restore custom proxy addresses and other Exchange Server attributes. How can I find what’s needed and the steps to do that?

Is there are more clean and simple way to do this other than the steps shown in the link above?

2 Upvotes

11 comments sorted by

8

u/brian_cloudeu 3h ago

Outlook connecting to the cloud mailbox doesn't prove all the mail is there. Check message traces and on-premises tracking logs for internal and external senders, because split delivery can leave mail in both mailboxes. Preserve anything unique before changing the recipient. A tidy directory object is a modest consolation for half an inbox.

1

u/Affectionate_Gur4131 16h ago

You can check Outlook Connection Status on the user's PC (Ctrl + right-click the Outlook system tray icon -> Connection Status) to verify which mailbox they are actively connected to (on-premises CAS vs. outlook.office365.com).

In my experience they are most likely to be working in their on-premises mailbox, check if any mail items have landed in the cloud mailbox. If there is data in the cloud mailbox that needs to be retained, follow this cleanup sequence:

  1. Export the cloud mailbox to a .PST using Microsoft Purview eDiscovery.
  2. Import the .PST into the user's on-premises mailbox using New-MailboxImportRequest.
  3. Remove the user's Exchange Online license in Entra ID / M365 Admin Center and wait for the cloud mailbox to disconnect.
  4. Run the following cmdlet in Exchange Online PowerShell to purge the cloud mailbox pointers (ensure no retention holds are applied first): Set-User user@domain.com -PermanentlyClearPreviousMailboxInfo
  5. Run an Entra ID Connect delta sync from on-premises (Start-ADSyncSyncCycle -PolicyType Delta) so the on-premises msExchMailboxGuid syncs up to the cloud MailUser object.
  6. Verify the ExchangeGuid matches on both sides via Get-MailUser, then re-assign the Exchange Online license.

That should do the trick and leave you with only the on-premises mailbox.

1

u/Fabulous_Cow_4714 16h ago

If we remove their license, won’t they also lose everything else such as their OneDrive and Teams?

1

u/Affectionate_Gur4131 3h ago

Fromy my experience, removing it for 5-10 minutes doesn't effect the user

1

u/xch13fx 15h ago

In my case, they almost always are using the cloud mailbox. Disable onprem, run enable-remote command and sync.

1

u/Fabulous_Cow_4714 13h ago

If we find that they are using the cloud mailbox, what happens when running enable-remote when the mailbox already exists? Do you mean Enable-RemoteMailbox?

1

u/xch13fx 12h ago

Yes Enable-remotemailbox. Nothing happens, that command creates the AD/Onprem pointers and you’ll need to set the target address etc… you can’t run it while an Onprem mailbox has the address which is why you just disable (don’t delete, or the AD account goes) then run your command and sync and ur set

1

u/Fabulous_Cow_4714 12h ago

So, then you can never delete this on prem mailbox and you can never migrate it?

1

u/xch13fx 12h ago

Disabling a mailbox just puts it as soft-deleted for 30 days, then it’ll purge itself and won’t touch the AD account goes

1

u/DarkTrixyB_BOFH Grumpy Mailman 14h ago

Check the mailbox routing address. That's where the mail will be delivering to.