PowerShell Script to remove Office 365 Service Plans from a user

When assigning an Office 365 license to a user, by default several service plans are enabled. When assigning an Office 365 E3 license to a user, the following service plans are enabled by default:

  • Azure Rights Management
  • Office 365 Pro Plus
  • Skype for Business Online (Plan 2)
  • Office Online
  • SharePoint Online (Plan 2)
  • Exchange Online (Plan 2)

From an end user perspective the user will see the following options when logging on to Office 365.


When looking at the users settings within the Office 365 Admin portal , things look as following:


The below PowerShell function allows an Office 365 user administrator to disable individual services for a registered Office 365 user.

The following command disables the Skype for Business Service

Disable-MsolUserServicePlan alextest@contoso.onmicrosoft.com -ServicePlan SkypeforBusiness


Now doing the same for Exchange and the Office web apps.

Disable-MsolUserServicePlan alextest@contoso.onmicrosoft.com -ServicePlan OfficeWebApps -Verbose

Disable-MsolUserServicePlan alextest@contoso.onmicrosoft.com -ServicePlan Exchange -Verbose


Note, before running the below command, you must connect to Azure Directory using the connect-msolservice cmdlet.

The script can be downloaded from here

More information:
Working with Office 365 User Licenses
Use Office 365 PowerShell to disable access to services

2 Replies to “PowerShell Script to remove Office 365 Service Plans from a user”

Leave a Reply