Created
August 31, 2014 19:30
-
-
Save anonymous/956efb5eb04f5597c9c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$limitedE1 = New-MsolLicenseOptions -AccountSkuId Contoso:STANDARDPACK -DisabledPlans YAMMER_ENTERPRISE,SHAREPOINTSTANDARD ; | |
$limitedE3 = New-MsolLicenseOptions -AccountSkuId Contoso:ENTERPRISEPACK -DisabledPlans YAMMER_ENTERPRISE,OFFICESUBSCRIPTION,SHAREPOINTENTERPRISE,SHAREPOINTWAC ; | |
Import-Csv c:\powershell\e1imports.csv | ForEach {Set-MsolUserLicense -UserPrincipalName $_.user -LicenseOptions $limitedE1} ; | |
Import-Csv c:\powershell\e3imports.csv | ForEach {Set-MsolUserLicense -UserPrincipalName $_.user -LicenseOptions $limitedE3} ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment