Office365 Adjust User Licenses

With Microsoft progressing with how licensing works with Office 365, we are able to mix and match multiple license types in their cloud service. Overtime it can become cumbersome to manage licenses, where users will have the wrong license attached. The following hammer will allow you to run through all your users and attach the correct licenses, assuming you have enough licenses to float.

This hammer assumes you connect to Microsoft Online Licensing through PowerShell using the following code

Once connected to Microsoft Online Licensing, run the following hammer. This assumes the CSV that is being loaded in has two columns, UserPrincipalName and LicenseSkuId.

This hammer was used to remove the trial licenses from a test account and applied the correct licenses. We were setting up roughly 400 users with a mixture of E3 and Business Premium licenses, so we needed to remove all the techwithahammer:O365_BUSINESS_PREMIUM licenses and replace them with techwithahammer:ENTERPRISEPACK and techwithahammer:SMB_BUSINESS_PREMIUM.

Leave a Reply

Your email address will not be published. Required fields are marked *