# Office 365 Service Plan Configuration

**URL:** <https://forums.powershell.org/t/office-365-service-plan-configuration/11448>\
**Category:** PowerShell Help\
**Created:** [October 10, 2018, 6:21am UTC](https://forums.powershell.org/t/office-365-service-plan-configuration/11448 "2018-10-10T06:21:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steviebleeds](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@steviebleeds](https://forums.powershell.org/u/steviebleeds)\
**Post date:** [October 10, 2018, 6:21am UTC](https://forums.powershell.org/t/office-365-service-plan-configuration/11448/1 "2018-10-10T06:21:14Z")

</div>

Hey all,

Our users have different Service Plan configurations within our Office 365 tenancy. But, they all have the Exchange Online (Plan 2) plan switched on. What I’m trying to figure out is how to switch off Exchange Online in their Service Plan without affecting the other enabled services.

I’ve seen a few PS tools that can do this, but I can’t quite work out in the code how this magic is being done!

Any pointers at all?

Thanks

---

<div class="post-metadata">

**Author:** ![sanchez](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@sanchez](https://forums.powershell.org/u/sanchez)\
**Post date:** [October 10, 2018, 8:07am UTC](https://forums.powershell.org/t/office-365-service-plan-configuration/11448/2 "2018-10-10T08:07:13Z")

</div>

> **[New-MsolLicenseOptions (MSOnline)](https://docs.microsoft.com/en-us/powershell/module/msonline/new-msollicenseoptions?view=azureadps-1.0)**
>
> The New-MsolLicenseOptions cmdlet creates a License Options object. This cmdlet disables specific service plans when assigning a user a license using the Set-MsolUserLicense cmdlet.

> **[Set-MsolUserLicense (MSOnline)](https://docs.microsoft.com/en-us/powershell/module/msonline/set-msoluserlicense?view=azureadps-1.0)**
>
> The Set-MsolUserLicense cmdlet updates the license assignment for a user. This can include adding a new license, removing a license, updating the license options, or any combination of these actions.

You’ll need to use new-msollicenseoptions to configure a license option, and then use set-msoluserlicense to apply it. You could build out the licenseoptions as a variable, or set-msoluserlicense accepts pipeline input from new-msollicenseoptions.

&nbsp;

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:34pm UTC](https://forums.powershell.org/t/office-365-service-plan-configuration/11448/3 "2024-05-16T20:34:15Z")

</div>


