Microsoft 365 - Assign licenses with PowerShell to users
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