In a Hybrid Exchange environment, mailbox type changes (like converting a shared mailbox to a user mailbox) should typically be performed on-premises using the on-premises Exchange server if the mailbox is homed on-premises. If the mailbox is in Exchange Online, then the operation should be done in Exchange Online directly.
✅ To directly answer your question:
In a hybrid environment, do you run Set-Mailbox in Exchange Online or Set-RemoteMailbox on-prem to convert a shared mailbox to a user mailbox in EXO?
✅ If the mailbox is already in Exchange Online, you should:
✔️ Use Set-Mailbox in Exchange Online.
However, here's an important breakdown:
🧭 First, determine where the mailbox is homed:
- On-premises Exchange hybrid user: The user’s mailbox is created and managed from on-premises Exchange, and
RemoteMailbox objects represent them.
- Cloud-only mailbox: The mailbox lives entirely in Exchange Online.
📌 Scenario 1: Mailbox is homed in Exchange Online
If the shared mailbox is in Exchange Online (EXO), convert using:
Set-Mailbox user@domain.com -Type Regular
✔️ This converts the shared mailbox into a regular user mailbox in EXO. After conversion, assign a license in Microsoft 365 for it to remain active.
📌 Scenario 2: Mailbox is a RemoteMailbox (from on-prem)
You must make the change on-premises:
Set-RemoteMailbox user@domain.com -Type Regular
Then run Start-ADSyncSyncCycle or wait for synchronization, so the change flows to Azure AD / Exchange Online.
🛑 Do NOT run Set-Mailbox -Type Regular in EXO if the source of authority is on-prem AD. Doing so in EXO might work temporarily, but it can be overwritten by the next sync from on-prem.
💡 Summary Table:
| Mailbox Location | Cmdlet to Use | Notes |
|---|
| Exchange Online (EXO) | Set-Mailbox | For mailboxes fully in EXO; make sure to license after. |
| On-Prem Hybrid (Remote) | Set-RemoteMailbox | Changes sync to EXO via Azure AD Connect. |
| Unknown? | Check with Get-User or Get-Mailbox in both environments | |
🧪 Bonus Tips:
- To identify the mailbox type and location, use:
Get-RemoteMailbox user@domain.com # On-prem
Get-Mailbox user@domain.com # EXO
- If the user has a
RemoteRoutingAddress, it's likely a remote mailbox (hybrid).
- If you see the mailbox object only in EXO and not in on-prem Exchange, it's likely cloud-only.
Let me know if you want help figuring out where a mailbox is hosted!