Solved

Remove Planner for ALL users in Tenant

Posted on 2016-11-29
2
9 Views
Last Modified: 2016-11-29
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
2 Comments
 
LVL 38

Accepted Solution

by:
Vasil Michev (MVP) earned 500 total points
Comment Utility
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
Comment Utility
Bang on Vasil - Thank you
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now