If you have many users synced to Office 365. It will be more efficient to user powershell to license them.
This is how:
connect-msolservice and enter crendentials.
Get-MsolAccountSku will display the license types.
And then:
$AccountSkuId =
“tenantname:STANDARDWOFFPACK_STUDENT”
“tenantname:STANDARDWOFFPACK_STUDENT”
$UsageLocation =
“FI”
“FI”
$LicenseOptions =
New-MsolLicenseOptions -AccountSkuId
$AccountSkuId
New-MsolLicenseOptions -AccountSkuId
$AccountSkuId
$Users =
Get-MsolUser -All
| Where-Object
{$_.isLicensed
-like “false”}
Get-MsolUser -All
| Where-Object
{$_.isLicensed
-like “false”}
$Users |
ForEach-Object {
ForEach-Object {
Set-MsolUser -UserPrincipalName
$_.UserPrincipalName
-UsageLocation $UsageLocation
$_.UserPrincipalName
-UsageLocation $UsageLocation
Set-MsolUserLicense -UserPrincipalName
$_.UserPrincipalName
-AddLicenses $AccountSkuId
-LicenseOptions $LicenseOptions
$_.UserPrincipalName
-AddLicenses $AccountSkuId
-LicenseOptions $LicenseOptions
}
$users part find all Unlicensed users and apply a license to them.
Save it so .ps1 and run!
Enjoy powershell!