We have an Office 365 Education Plus for Faculty license assigned to our staff. However when we license users we’ve left Skype for Business unchecked.
We’ve been rolling out Skype for Business to our users and so we’d like to be able to license it in bulk since our user group is in the thousands.
I’ve tried creating the two below scripts but both error out in PowerShell (opened Azure AD Module as admin, then connect-msolservice) with a “license is not valid” message.
I’d appreciate any help to figure out where my scripts are going wrong.
#Script 1#
$233fac = New-MsolLicenseOptions –AccountSkuId “ourdomain:STANDARDWOFFPACK_IW_FACULTY”
$AccountSkuId = “ourdomain:STANDARDWOFFPACK_IW_FACULTY”
$Users = Import-Csv c:\Temp\SSStafftest.csv
$Users | ForEach-Object {Set-MsolUser -UserPrincipalName $.UserPrincipalName
Set-MsolUserLicense -UserPrincipalName $.UserPrincipalName -AddLicenses $AccountSkuId -LicenseOptions $233fac}
#Script 2#
$AccountSkuId = “ourdomain:STANDARDWOFFPACK_IW_FACULTY”
$UsageLocation = “US”
$Users = Import-Csv c:\temp\SSStafftest.csv
$Users | ForEach-Object {
Set-MsolUser -UserPrincipalName $.UserPrincipalName -UsageLocation $UsageLocation
Set-MsolUserLicense -UserPrincipalName $.UserPrincipalName -AddLicenses $AccountSkuId