Last active
May 11, 2017 01:43
-
-
Save mattmcnabb/76cb1021748534eb4b4437c739107c34 to your computer and use it in GitHub Desktop.
Blog_Office-365-Licensing_2
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
# save the license options in a variable | |
$Options = New-MsolLicenseOptions ` | |
-AccountSkuId whitehouse:ENTERPRISEPACK ` | |
-DisabledPlans SWAY, YAMMER_ENTERPRISE, SHAREPOINTWAC, MCOSTANDARD | |
# set the license using the saved options | |
Set-MsolUserLicense ` | |
-UserPrincipalName Ronald.Reagan@whitehouse.gov ` | |
-AddLicenses whitehouse:ENTERPRISEPACK ` | |
-LicenseOptions $Options |
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
# save the license options in a variable | |
$Options = New-MsolLicenseOptions ` | |
-AccountSkuId whitehouse:ENTERPRISEPACK ` | |
-DisabledPlans SWAY, YAMMER_ENTERPRISE, SHAREPOINTWAC, MCOSTANDARD | |
$Options += New-MsolLicenseOptions ` | |
-AccountSkuId whitehouse:PROJECTONLINE ` | |
-DisabledPlans SWAY | |
# set Ronnie's licenses using the previously saved options | |
Set-MsolUserLicense ` | |
-UserPrincipalName Ronald.Reagan@whitehouse.gov | |
-AddLicenses whitehouse:ENTERPRISEPACK, whitehouse:PROJECTONLINE ` | |
-LicenseOptions $Options |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment