Ok, add an Exchange License to it. convert to user mailbox, then remove the license.
How to just disable a mailbox in Exchange Hybrid Environment?
Hi.
We have a Exchange Hybrid Environment and all mailboxes are migrated to Exchange Online.
How to just disable a mailbox attached to the user account?
I have tried Disable-Remotemailbox but it only removes the mailbox related info from Onprem exchange and I still can see user mailbox in Exchange online as is.
Thanks.
Regards,
Raj
1 additional answer
Sort by: Most helpful
-
Andy David - MVP 144.4K Reputation points MVP
2024-04-15T18:14:34.5033333+00:00 Remove the Exchange Online license or run
https://video2.skills-academy.com/en-us/powershell/module/exchange/disable-mailbox?view=exchange-ps
-PermanentlyDisable
This parameter is available only in the cloud-based service.
The PermanentlyDisable switch specifies whether to permanently disable the mailbox. You don't need to specify a value with this switch.
Notes:
- You can only use this switch on user mailboxes that aren't licensed and aren't on hold.
- When the Exchange Online license is removed from a mailbox without following other deprovisioning steps, this may leave the mailbox in a hard-deleted state. In this case, this parameter is not useful. You can use it, for example, in hybrid Exchange environments.
Note you will still need to disable the remote mailbox on-prem.
I prefer to just remove the Exchange online license, but Im not sure what your requirements are for disabling the mailbox here.