Erwin Bierens

Knowledge is Power

Microsoft 365 - Assign licenses with PowerShell to users

2022-11-28 2 min read Microsoft365

During the working week i get a lot of questions about assigning licenses (mostly the Microsoft Teams Phone Standard license) to users in bulk. This can be easily resolved with PowerShell.

First logon to MSOnline, if you don’t have this module installed use: Install-Module -name MSOnline

Connect-MsolService

Let’s see your active licenses

Get-MsolAccountSku

In order to assign a license to one of your users use the following cmdlet

Set-MsolUserLicense -UserPrincipalName user@contoso.com -AddLicenses tenant:mcoev

In this example we’ve assigned the Microsoft Teams Phone Standard license to the user.

Continue reading