Convert to Shared Mailbox when deprovisioning users for Exchange Hybrid deployment / Exchange Online

Convert to Shared Mailbox when deprovisioning users for Exchange Hybrid deployment / Exchange Online

In a Hybrid Deployment when we disable users, we do not delete their mailboxes right away. What we do is convert their mailbox to a shared mailbox to save on Exchange Online licenses. This is should an automation tasks and as a part of disable policy.

To convert a mailbox to shared, we need to perform three steps:

1 - Convert the mailbox to shared in Exchange Online.
Run the following command in Exchange Online Powershell: Set-Mailbox MyMailbox -Type Shared

2 - Modify the on-premises AD attributes accordingly:
msExchRemoteRecipientType: 100
msExchRecipientTypeDetails: 34359738368

3 - Revoke the Exchange Online license: This is already done in ADMP.

Please and Thank You!

                  New to ADSelfService Plus?