Disable a specific O365 plan

%3CLINGO-SUB%20id%3D%22lingo-sub-1426791%22%20slang%3D%22en-US%22%3EDisable%20a%20specific%20O365%20plan%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1426791%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20would%20like%20to%20disable%20a%20single%20plan%2C%20such%20as%20Microsoft%20Bookings%2C%20but%20NOT%20have%20it%20affect%20the%20status%20of%20any%20other%20plan%2C%20but%20I%20can%20find%20nothing%20which%20allows%20this.%26nbsp%3B%20I%20can%20disable%20a%20plan%20using%20the%20variable%20%24LO%20%3D%20New-MsolLicenseOptions%20-AccountSkuId%20%24License%20-DisabledPlans%20%3CPLAN%20name%3D%22%22%3E%20(where%20%24License%20%3D%20our%20MsolAccountSku)%20and%20%24AllLicensed%20%3D%20Get-MsolUser%20-All%20%7C%20where%20%7B%24_.isLicensed%20-eq%20%24true%7D%3B%20%24AllLicensed%20%7C%20foreach%20%7BSet-MsolUserLicense%20-UserPrincipalName%20%24_.UserPrincipalName%20-LicenseOptions%20%24LO%7D%2C%20but%20it%20turns%20on%20plans%20not%20specifically%20listed%20in%20the%20%24LO%20variable.%26nbsp%3B%20Is%20there%20a%20way%20to%20disable%20a%20single%20plan%20without%20it%20turning%20on%20(or%20off)%20any%20other%20plan%3F%26nbsp%3B%20Thanks.%3C%2FPLAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1426791%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1426969%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20a%20specific%20O365%20plan%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1426969%22%20slang%3D%22en-US%22%3E%3CP%3ETry%20the%20script%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Farchive%2Fblogs%2Fcloudpfe%2Fhow-to-change-office-365-licenses-in-bulk-respecting-the-license-options%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Farchive%2Fblogs%2Fcloudpfe%2Fhow-to-change-office-365-licenses-in-bulk-respecting-the-license-options%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

We would like to disable a single plan, such as Microsoft Bookings, but NOT have it affect the status of any other plan, but I can find nothing which allows this.  I can disable a plan using the variable $LO = New-MsolLicenseOptions -AccountSkuId $License -DisabledPlans <plan name> (where $License = our MsolAccountSku) and $AllLicensed = Get-MsolUser -All | where {$_.isLicensed -eq $true}; $AllLicensed | foreach {Set-MsolUserLicense -UserPrincipalName $_.UserPrincipalName -LicenseOptions $LO}, but it turns on plans not specifically listed in the $LO variable.  Is there a way to disable a single plan without it turning on (or off) any other plan?  Thanks.

1 Reply