Archive

Archive for November, 2015

Disable Office 365 Service Plans (Skype for Business, Exchange, SharePoint, Office) with PowerShell CMDLETS

November 22, 2015 Leave a comment

As an Office 365 Engineer you may get different requests to amend licenses assigned for each individuals in the organization. In this article I will discuss and show you how to disable service plan objects with PowerShell commands. At the end of this article you will be able to create License Option to disable services such as Skype for Business, Exchange Online, SharePoint, and Office. 

As the first step,  let’s identify the AccountSkuId and SkuPartNumber value for each AccountSkuId. Trigger below PS command after you login to your Office 365 portal with the Admin account.

Get-MsolAccountSku | Format-Table AccountSkuId, SkuPartNumber

 

image

 

Here we go… we have got two Part Numbers named STANDARDPACK AND ENTERPRISESPACK. Actually these part numbers depend on plans or subscriptions you have purchased.

Now we need to create a License Option object forch AccountSkuid. To get a detailed understanding about  the office 365 Service Plan Sku’s you can refer my previous article.

 

Disable Skype for Business Plan

 

1. Create a LicenseOption object for each AccountSkuId

Syntax:

$LicenseOption_object_name = New-MsolLicenseOptions -AccountSkuId your-AccountSkuId -DisabledPlans MCOSTANDARD

$LicenseOption_object_name.GetType()

Let’s name the License Object name as “$CloudObj”

 

Example:

$myCloudObj = New-MsolLicenseOptions –AccountSkuId domain:STANDARDPACK -DisabledPlans MCOSTANDARD

$myCloudObj.GetType()

 

2. Disable Skype Business for all users

To disable Skype for Business for all users, run the following command for each LicenseOption object you created in the Step 1

 

Syntax:

Get-MsolUser | Set-MsolUserLicense –LicenseOptions $LicenseOption_object_name

Example:

Get-MsolUser | Set-MsolUserLicense –LicenseOptions $myCloudObj

3. Disable Skype for Business for specific user

Syntax:

Set-MsolUserLicense -UserPrincipalName user-UPN –LicenseOptions $LicenseOption_object_name

 

Example:

Set-MsolUserLicense – –UserPrincipalName dilshan@domain.com –LicenseOptions $myCloudObj

image

Disable Exchange Online Plan

1. Create a LicenseOption object for each AccountSkuId

Syntax:

$LicenseOption_object_name = New-MsolLicenseOptions -AccountSkuId your-AccountSkuId -DisabledPlans EXCHANGE_S_ENTERPRISE

$LicenseOption_object_name.GetType()

Let’s name the License Object name as “$CloudObj”

 

Example:

$myCloudObj = New-MsolLicenseOptions –AccountSkuId domain:STANDARDPACK -DisabledPlans EXCHANGE_S_ENTERPRISE

$myCloudObj.GetType()

 

2. Disable Exchange Online for all users

To disable Exchange Online for all users, run the following command for each LicenseOption object you created in the Step 1

 

Syntax:

Get-MsolUser | Set-MsolUserLicense –LicenseOptions $LicenseOption_object_name

Example:

Get-MsolUser | Set-MsolUserLicense –LicenseOptions $myCloudObj

 

3. Disable Exchange Online for specific user

Syntax:

Set-MsolUserLicense -UserPrincipalName user-UPN –LicenseOptions $LicenseOption_object_name

 

Example:

Set-MsolUserLicense – –UserPrincipalName dilshan@domain.com –LicenseOptions $myCloudObj

Disable SharePoint Online Plan

 

1. Create a LicenseOption object for each AccountSkuId

Syntax:

$LicenseOption_object_name = New-MsolLicenseOptions -AccountSkuId your-AccountSkuId -DisabledPlans SHAREPOINTENTERPRISE

$LicenseOption_object_name.GetType()

Let’s name the License Object name as “$CloudObj”

 

Example:

$myCloudObj = New-MsolLicenseOptions –AccountSkuId domain:STANDARDPACK -DisabledPlans SHAREPOINTENTERPRISE

$myCloudObj.GetType()

 

2. Disable SharePoint Online for all users

To disable SharePoint Online for all users, run the following command for each LicenseOption object you created in the Step 1

 

Syntax:

Get-MsolUser | Set-MsolUserLicense –LicenseOptions $LicenseOption_object_name

 

Example:

Get-MsolUser | Set-MsolUserLicense –LicenseOptions $myCloudObj

 

3. Disable SharePoint Online for specific user

Syntax:

Set-MsolUserLicense -UserPrincipalName user-UPN –LicenseOptions $LicenseOption_object_name

 

Example:

Set-MsolUserLicense –UserPrincipalName dilshan@domain.com –LicenseOptions $myCloudObj

 

Disable Office Professional Plus Plan

 

1. Create a LicenseOption object for each AccountSkuId

Syntax:

$LicenseOption_object_name = New-MsolLicenseOptions -AccountSkuId your-AccountSkuId -DisabledPlans SHAREPOINTENTERPRISE

$LicenseOption_object_name.GetType()

Let’s name the License Object name as “$CloudObj”

 

Example:

$myCloudObj = New-MsolLicenseOptions –AccountSkuId domain:STANDARDPACK -DisabledPlans SHAREPOINTENTERPRISE

$myCloudObj.GetType()

 

2. Disable Office for all users

To disable Office for all users, run the following command for each LicenseOption object you created in the Step 1

Syntax:

Get-MsolUser | Set-MsolUserLicense –LicenseOptions $LicenseOption_object_name

 

Example:

Get-MsolUser | Set-MsolUserLicense –LicenseOptions $myCloudObj

3. Disable Office for specific user

Syntax:

Set-MsolUserLicense -UserPrincipalName user-UPN –LicenseOptions $LicenseOption_object_name

 

Example:

Set-MsolUserLicense – –UserPrincipalName dilshan@domain.com –LicenseOptions $myCloudObj

 

I hope this will help for you guys….

Advertisements
Categories: Office365

Office 365 Service Plan SKU’s

November 22, 2015 Leave a comment

Below herewith are the types of subscriptions and services currently available with office 365.

If you want to retrieve AccountSkuid and Service Plans in a particular time, you may run below shell commands,

Get-MsolAccountSku

image

 

Once you identified the AccountSkuid, you can get services attached to it with below PS command,

Get-MsolAccountSku | Where-Object {$_.SkuPartNumber -eq "ENTERPRISEPACK"} | ForEach-Object{$_.ServiceStatus}

image

Office 365 Enterprise E3 | ENTERPRISEPACK

AAD_PREMIUM

EXCHANGE_S_ENTERPRISE

Exchange Online (Plan 2)

MCOSTANDARD

Lync Online (Plan 2)

SHAREPOINTENTERPRISE

SharePoint Online (Plan 2)

SHAREPOINTWAC

Office Online

OFFICESUBSCRIPTION

Office ProPlus

RMS_S_ENTERPRISE

Azure Active Directory Rights Management

YAMMER_ENTERPRISE

Yammer

SWAY

SWAY

INTUNE_O365

INTUNE

 

AAD_PREMIUM

Azure Active Directory Premium

MFA_PREMIUM

Azure Multi-Factor Authentication

 
Office 365 Enterprise E4 | ENTERPRISEPACKWSCAL

EXCHANGE_S_ENTERPRISE

Exchange Online (Plan 2)

MCOSTANDARD

Lync Online (Plan 2)

SHAREPOINTENTERPRISE

SharePoint Online (Plan 2)

SHAREPOINTWAC

Office Online

OFFICESUBSCRIPTION

Office ProPlus

RMS_S_ENTERPRISE

Azure Active Directory Rights Management

YAMMER_ENTERPRISE

Yammer

SWAY

SWAY

INTUNE_O365

INTUNE

MCVOICECONF

Lync Online (Plan 3)

 

Office 365 Small Business Premium | LITEPACK_P2

EXCHANGE_L_STANDARD

Exchange Online (Plan 1)

MCOLITE

Lync Online (Plan 1)

SHAREPOINTLITE

SharePoint Online (Plan 1)

OFFICE_PRO_PLUS_SUBSCRIPTION_SMBIZ

Office ProPlus

Office 365 Midsize Business

MIDSIZEPACK

 

Office 365 Midsize Business | MIDSIZEPACK

EXCHANGE_S_STANDARD_MIDMARKET

Exchange Online (Plan 1)

MCOSTANDARD_MIDMARKET

Lync Online (Plan 1)

SHAREPOINTENTERPRISE_MIDMARKET

SharePoint Online (Plan 1)

SHAREPOINTWAC

Office Online

OFFICESUBSCRIPTION

Office ProPlus

YAMMER_MIDSIZE

Yammer

 

Office 365 Enterprise K1 with/without Yammer | DESKLESSPACK or DESKLESSPACK_YAMMER

EXCHANGE_S_DESKLESS

Exchange Online Kiosk

SHAREPOINTDESKLESS

SharePoint Online Kiosk

YAMMER_ENTERPRISE

Yammer for the Starship Enterprise

 

Office 365 Enterprise K2 | DESKLESSWOFFPACK

EXCHANGE_S_DESKLESS

Exchange Online Kiosk

SHAREPOINTDESKLESS

SharePoint Online Kiosk

SHAREPOINTWAC

Office Online

 

Office 365 for Education

STANDARDPACK_STUDENT

Microsoft Office 365 (Plan A1) for Students

STANDARDPACK_FACULTY

Microsoft Office 365 (Plan A1) for Faculty

STANDARDWOFFPACK_FACULTY

Office 365 Education E1 for Faculty

STANDARDWOFFPACK_STUDENT

Microsoft Office 365 (Plan A2) for Students

STANDARDWOFFPACK_IW_STUDENT

Office 365 Education for Students

STANDARDWOFFPACK_IW_FACULTY

Office 365 Education for Faculty

EOP_ENTERPRISE_FACULTY

Exchange Online Protection for Faculty

EXCHANGESTANDARD_STUDENT

Exchange Online (Plan 1) for Students

OFFICESUBSCRIPTION_STUDENT

Office ProPlus Student Benefit

 

Office 365 for Government

STANDARDPACK_GOV

Microsoft Office 365 (Plan G1) for Government

STANDARDWOFFPACK_GOV

Microsoft Office 365 (Plan G2) for Government

ENTERPRISEPACK_GOV

Microsoft Office 365 (Plan G3) for Government

ENTERPRISEWITHSCAL_GOV

Microsoft Office 365 (Plan G4) for Government

DESKLESSPACK_GOV

Microsoft Office 365 (Plan K1) for Government

ESKLESSWOFFPACK_GOV

Microsoft Office 365 (Plan K2) for Government

EXCHANGESTANDARD_GOV

Microsoft Office 365 Exchange Online (Plan 1) only for Government

EXCHANGEENTERPRISE_GOV

Microsoft Office 365 Exchange Online (Plan 2) only for Government

SHAREPOINTDESKLESS_GOV

SharePoint Online Kiosk

EXCHANGE_S_DESKLESS_GOV

Exchange Kiosk

OFFICESUBSCRIPTION_GOV

Office ProPlus

MCOSTANDARD_GOV

Lync Plan 2G

SHAREPOINTWAC_GOV

Office Online for Government

SHAREPOINTENTERPRISE_GOV

SharePoint Plan 2G

EXCHANGE_S_ENTERPRISE_GOV

Exchange Plan 2G

EXCHANGE_S_ARCHIVE_ADDON_GOV

Exchange Online Archiving

 

Other plans and add-ons

LITEPACK

Office 365 (Plan P1)

STANDARDPACK

Microsoft Office 365 (Plan E1)

STANDARDWOFFPACK

Microsoft Office 365 (Plan E2)

DESKLESSPACK

Office 365 (Plan K1)

EXCHANGEARCHIVE

Exchange Online Archiving

EXCHANGETELCO

Exchange Online POP

SHAREPOINTSTORAGE

SharePoint Online Storage

SHAREPOINTPARTNER

SharePoint Online Partner Access

PROJECTONLINE_PLAN_1

Project Online (Plan 1)

PROJECTONLINE_PLAN_2

Project Online (Plan 2)

PROJECT_CLIENT_SUBSCRIPTION

Project Pro for Office 365

VISIO_CLIENT_SUBSCRIPTION

Visio Pro for Office 365

INTUNE_A

Intune for Office 365

CRMSTANDARD

CRM Online

CRMTESTINSTANCE

CRM Test Instance

ONEDRIVESTANDARD

OneDrive

WACONEDRIVESTANDARD

OneDrive Pack

SQL_IS_SSIM

Power BI Information Services

BI_AZURE_P1

Power BI Reporting and Analytics

EOP_ENTERPRISE

Exchange Online Protection

PROJECT_ESSENTIALS

Project Lite

CRMIUR

CRM for Partners

NBPROFESSIONALFORCRM

Microsoft Social Listening Professional

AAD_PREMIUM

Azure Active Directory Premium

MFA_PREMIUM

Azure Multi-Factor Authentication

 

Hope this article would helpful for your guys…

 

Reference : http://blogs.technet.com/b/treycarlee/archive/2014/12/10/list-of-powershell-licensing-sku-s-for-office-365.aspx

Categories: Office365