Abdul Ali
asked on
Disable Exchange online service for all users
Actually I'm trying to disable the exchange online service for all users and i used the below article as a reference
https://technet.microsoft.com/en-us/library/dn771769.aspx
but the issue is whenever trying to run the all users command Get-MsolUser | Where-Object {$_.isLicensed -eq $True} | Set-MsolUserLicense -LicenseOptions $x i got that message (Unable to assign this license because the license options are invalid) , but when applying it on each users one by one it's okay, also i have two AccountSKUID STANDARDPACK ENTERPRISEPACK so my question how i can apply the above command to all users with specific plan like e3 or e1?
https://technet.microsoft.com/en-us/library/dn771769.aspx
but the issue is whenever trying to run the all users command Get-MsolUser | Where-Object {$_.isLicensed -eq $True} | Set-MsolUserLicense -LicenseOptions $x i got that message (Unable to assign this license because the license options are invalid) , but when applying it on each users one by one it's okay, also i have two AccountSKUID STANDARDPACK ENTERPRISEPACK so my question how i can apply the above command to all users with specific plan like e3 or e1?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You simply run it without specifying any DisabledPlans:
This will reset all services to "ON".
$LO = New-MsolLicenseOptions -AccountSkuId "tenant:ENTERPRISEPACK"
This will reset all services to "ON".
ASKER