Solved

Remove Planner for ALL users in Tenant

Posted on 2016-11-29
2
39 Views
Last Modified: 2017-01-16
I need to remove ALL users without the need of a csv that currently have a PLANNERSTANDALONE license.

Does someone have a powershell script to do just this?

Thanks

John
0
Comment
Question by:John Davies
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 41

Accepted Solution

by:
Vasil Michev (MVP) earned 500 total points
ID: 41905557
It's not as easy as you might have a combination of SKUs all eligible for Planner. In general, you should be able to use this to list the relevant SKUs:

Get-MsolAccountSku | ? {$_.ServiceStatus.ServicePlan.ServiceName -eq "PROJECTWORKMANAGEMENT"}

Open in new window


Once you have the SKU(s), for each run:

$SkuOptions = New-MsolLicenseOptions -AccountSkuId "SKU_from_above" -DisabledPlans "PROJECTWORKMANAGEMENT"

Open in new window


Lastly, replace the current license:

Get-MsolUser | ? {$_.Licenses.AccountSkuId -eq "SKU_from_above"} |  % { Set-MsolUserLicense -UserPrincipalName $_.UserPrincipalName -LicenseOptions $SkuOptions }

Open in new window


Repeat for any additional SKUs.

And goes without saying, test with a single user or two before running this against the whole tenant.
0
 

Author Closing Comment

by:John Davies
ID: 41905588
Bang on Vasil - Thank you
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
how to add IIS SMTP to handle application/Scanner relays into office 365.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question