Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Remove Planner for ALL users in Tenant

Posted on 2016-11-29
2
Medium Priority
?
46 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 43

Accepted Solution

by:
Vasil Michev (MVP) earned 2000 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

Q2 2017 - Latest Malware & Internet Attacks

WatchGuard’s Threat Lab is a group of dedicated threat researchers committed to helping you stay ahead of the bad guys by providing in-depth analysis of the top security threats to your network.  Check out our latest Quarterly Internet Security Report!

Question has a verified solution.

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

Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Suggested Courses

636 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