2

I've converted a user's mailbox to a shared mailbox. I now want to remove this license, but there is no option available. I'd like to use this license for a new employee.

Does anyone know how I can remove this license so it can be reused?

Gareth
  • 19,080
Rob
  • 603

2 Answers2

2

Just had to do this, and came across this question on my search for a solution.

Pre-requisites:

After installing the above and restarting, open PowerShell

  1. If you used the link created by the installer, proceed to the next step, otherwise you need to import the Microsoft Online Services Module. At the PowerShell prompt:

    Import-Module MSOnline
  2. Now, assign your credentials to a variable (these are the login credentials you use to access Office365), a username/password box will appear for you:

    $cred = Get-Credential
  3. Connect to the online service and pass your credentials:

    Connect-MsolService -Credential $cred
  4. You will need to know the type of license assigned to your user. Find it with:

    Get-MsolUser -UserPrincipalName user@example.com | Ft UserPrincipalName,DisplayName,Licenses

    Where user@example.com is replaced with the user account you are looking for. This will return something like:

    UserPrincipalName          DisplayName                Licenses
    -----------------          -----------                --------
    user@example.com           John Smith                 {example:LITEPACK}

    (Where example:LITEPACK is your AccountSkuId)

  5. Now, remove the license with:

    Set-MsolUserLicense -UserPrincipalName user@example.com -RemoveLicenses "example:LITEPACK"
    • Replace the user and license type as appropriate.
    • (Note: if you remove the license of a user mailbox, the mailbox and all data contained in the mailbox will be deleted).

At the end of the above, you will still have the original user (with an unlicensed status). Do not remove the user, as that will delete your shared mailbox.

cyberx86
  • 427
1

Open the converted user not via 'Groups->Shared mailboxes' view in O365 Admin Center but as regular user 'Users->Active users'.

In 'Active users' view you will find assigned licenses and will be able to reclaim them.

Converted user is still the user so don't try to delete it or you lost the user's shared mailbox.