Solved

Remove Planner for ALL users in Tenant

Posted on 2016-11-29
2
37 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 40

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

Enabling the Skype for Business Meeting Scheduler in Hybrid OWA
Microsoft Office Picture Manager has a Picture Shortcuts pane that shows a list with the Recently Browsed folders. While creating my video Micro Tutorial here at Experts Exchange showing How to Install Microsoft Office Picture Manager in Office 2013…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

749 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