PS - Office365 - Reassign Licenses

To reassign a user to a different license within Office 365 use the following PowerShell commands. In this example we remove a Lync Online Plan 1 and replace this with a Lync Online Plan 2.

# Connect to Office 365
Connect-MsolService

#We need to obtain the AccountSkuId values so that we are licensing within a licensing pack that the tenant is set up for. Get a list of the SKU configured
Get-MsolAccountSku

#remove the Lync Online Plan 1 and Assign a Lync Online Plan 2
Get-MsolUser -UserPrincipalName neil.petersen@DOMAIN.com | Set-MsolUserLicense -RemoveLicenses DOMAIN:MCOIMP –AddLicenses DOMAIN:MCOSTANDARD


Account SKU Examples:

POWERAPPS_INDIVIDUAL_USER

ENTERPRISEPACK
SHAREPOINTSTORAGE
SHAREPOINTENTERPRISE
POWER_BI_STANDARD
EMS
MCOIMP
SHAREPOINTSTANDARD
RIGHTSMANAGEMENT_ADHOC
MCOSTANDARD

Comments