How to just disable a mailbox in Exchange Hybrid Environment?

raj a 236 Reputation points
2024-04-15T18:03:21.83+00:00

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

Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,186 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,354 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,893 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 142.2K Reputation points MVP
    2024-04-15T18:14:34.5033333+00:00

    Remove the Exchange Online license or run

    https://learn.microsoft.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.


  2. Andy David - MVP 142.2K Reputation points MVP
    2024-04-15T18:35:56.95+00:00

    Ok, add an Exchange License to it. convert to user mailbox, then remove the license.