Delete Shared mailbox

Rising Flight 5,216 Reputation points
2022-02-19T12:57:55.583+00:00

Hi Experts

I am using exchange 2016 hybrid environment. i have a shared mailbox created in onprem and migrated to cloud. i want to delete the shared mailbox(i.e AD account as well as shared mailbox.). is the below syntax correct.

delete the shared mailbox and AD account:
Remove-RemoteMailbox sharedmailbox@Company portal .com

just disable shared mailbox.

Disable-RemoteMailbox sharedmailbox@Company portal .com

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Exchange Exchange Server Management
Exchange Hybrid management
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2022-02-19T15:47:03.28+00:00

    If you want to remove the AD account and Shared Mailbox completely, use the first command and run it On-PREM

    Remove-RemoteMailbox ******@contoso.com  
    

    This will also delete the account in Azure on the next AADConnect sync.

    https://learn.microsoft.com/en-us/powershell/module/exchange/remove-remotemailbox?view=exchange-ps

    176064-image.png

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.