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
Let’s see your active licenses
In order to assign a license to one of your users use the following cmdlet
Set-MsolUserLicense -UserPrincipalName email@example.com -AddLicenses tenant:mcoev
In this example we’ve assigned the Microsoft Teams Phone Standard license to the user.Continue reading