question

GOne-3896 avatar image
0 Votes"
GOne-3896 asked azure-cxp-api edited

Removing Exchange Online license for remote mailbox(O365)

Hello,

As per the article - https://docs.microsoft.com/en-us/powershell/module/exchange/disable-remotemailbox?view=exchange-ps

It says that you first need to remove the Exchange Online license for the mailbox. Otherwise, the mailbox won't be removed. Then only use disable-remotemailbox cmdlet to remove a cloud-based mailbox but keep the associated on-premises user account.

So my question is after removing Exchange Online license, do I also have to wait for directory synchronization to be completed/finished before using the Disable-RemoteMailbox cmdlet to remove mailbox from cloud(O365)?

Kindly answer specific to the above mentioned question and share Microsoft article that describes the situation.

office-exchange-online-itprooffice-exchange-hybrid-itprooffice-online-server-generaloffice-online-server-exchange
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AndyDavid avatar image
0 Votes"
AndyDavid answered

No, no need to wait. Simply run Disable-RemoteMailbox afterwards on-prem. The sync is one-way from on-prem to 365, so no need to wait for the next sync to finish- the disabling of the remote mailbox will get picked up by AADConnect on the next sync already.. The license and mailbox is already gone in 365.

The article you linked above already describes the situation :)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.