Service Code For Office Planner

6/7/2016

Get Service Plans Ids 

Microsoft recently rolled out Office Planner service plan for E1 / E3 and as normal( wink wink ) IT does not want it to be available by default to all the users ( and rightly so ). To disable the service plan for users is quite simple.  The powershell command being 


 $licenseOptions = New-MsolLicenseOptions –AccountSkuId $license -DisabledPlans "PROJECTWORKMANAGEMENT"
 Set-MsolUserLicense -UserPrincipalName $upn -LicenseOptions $licenseOptions

The trick was to get the code for the Planner  ie  "PROJECTWORKMANAGEMENT"  in the above code.  Here is the powershell script to get the codes of all the service 
options in your licence...


$username = "yourUserName@ComapnyDomain.com"     /// replace 
$password = "yourPwd"                            /// replace
$credentials = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $userName, $(convertto-securestring $Password -asplaintext -force)


# Get the acccount sku id and the licencing plans
Connect-MsolService  -Credential $credentials
Get-MsolAccountSku | ForEach-Object {$_.ServiceStatus}

Name

Email

WebSite