Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Assign office 365 license

$
0
0

I have a script which adds an office 365 license to a user, how can I ammend the script so that it added two different AccountSkuID licenses?

$AccountSkuId = "ExitCodeZero:STANDARDWOFFPACK"
$UsageLocation = "GB"
$Users = Import-Csv c:\temp\userlist.csv
$Users | ForEach-Object {
Set-MsolUser -UserPrincipalName $_.UserPrincipalName -UsageLocation $UsageLocation
Set-MsolUserLicense -UserPrincipalName $_.UserPrincipalName -AddLicenses $AccountSkuId
}


Best regards, Wayne


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>