Skip to content

Instantly share code, notes, and snippets.

Created August 31, 2014 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/956efb5eb04f5597c9c1 to your computer and use it in GitHub Desktop.
Save anonymous/956efb5eb04f5597c9c1 to your computer and use it in GitHub Desktop.
$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