Convert a user to Shared Mailbox with Power Shell.

Convert a user to Shared Mailbox with Power Shell.

1. Load the Exchange Online PowerShell module. If the module is already installed, you can typically skip this step.

      Install-Module -Name ExchangeOnlineManagement

When prompted to trust the repository, select Yes.

      Import-Module ExchangeOnlineManagement


2. Log-in to Office 365 using the script below in powershell:
      Connect-ExchangeOnline

3. Once signed-in use the command below to select and convert the desired account to Shared:

Set-Mailbox yourmailboxusername@yourdomain.com -Type shared


4. Verify the mailbox has Shared status.

Get-Mailbox -Identity yourmailboxusername@yourdomain.com | Format-List RecipientTypeDetails