Link to home
Start Free TrialLog in
Avatar of Abdul Ali
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?
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Abdul Ali
Abdul Ali

ASKER

Can you please Vasil show how i can enable it again?
You simply run it without specifying any DisabledPlans:

$LO = New-MsolLicenseOptions -AccountSkuId "tenant:ENTERPRISEPACK"

Open in new window


This will reset all services to "ON".