How to Disable SharePoint & One Drive for Business for all E3 Licensed Accounts

How to Disable SharePoint & One Drive for Business for all E3 Licensed Accounts

I recently had a customer that needed OneDrive for Business disabled on all their accounts in Office 365. I did a little digging and came across this article that explained how to disable it. It’s a pretty easy process although it’s much easier if you can disable it before your users have started using it.

Subsequently we needed to disable SharePoint completely and also make sure that the SharePoint component of their E3 licenses was unchecked. That’s a lot of clicking for 80 users. So I found this article from Microsoft on how to use PowerShell to accomplish this.  I had to work through a couple of missing parameters in one of the code sample they had in the article.

In this case, the script creates a license variable to disable any users that are running the CSP E3 SKU which is called: reseller-account-Enterprisepack. and it disables only the: “SHAREPOINTENTERPRISE”, “SHAREPOINTWAC” subcomponents. I tried disabling just the SharePoint (SHAREPOINTENTERPRISE) component but It won’t let you because Office Web Apps (SHAREPOINTWAC) relies on SharePoint so you have to disable both if you want to disable the SharePoint Component. You can figure out what SKUs are on your account using this command:

 Get-MsolAccountSku

Here’s the Script:

$credential = Get-Credential

Import-Module MsOnline

Connect-MsolService -Credential $credential

$LO = New-MsolLicenseOptions -AccountSkuId “reseller-account:Enterprisepack” -DisabledPlans “SHAREPOINTENTERPRISE”, “SHAREPOINTWAC”

$AllLicensed = Get-MsolUser -All | where {$_.isLicensed -eq $true}; $AllLicensed | foreach {Set-MsolUserLicense -UserPrincipalName $_.UserPrincipalName -LicenseOptions $LO}

 

Originally posted here: https://www.machinelogic.com/tech-advice/disable-sharepoint-one-drive-business-e3-licensed-accounts/

Yuriy Myakshynov

Senior Director of Technology | Insurance & Fintech Expert

12 个月

Nathan, thanks for sharing!

回复
Rajneesh G.

CEO, HaxSecurity | I build and Improve SOC | Cybersecurity Mentor | DM me for help | 2x Book Author

6 年

Wow! Thats fantastic Nathan. Even i could recall similar problem with one of my customer.?

回复

要查看或添加评论,请登录

Nathan Taylor的更多文章

  • Keeping up with Microsoft 365 and Azure Changes

    Keeping up with Microsoft 365 and Azure Changes

    I was recently asked for advice on ways to stay up to date with the constantly evolving Microsoft 365 and Azure…

    6 条评论
  • MS SQL on Linux?

    MS SQL on Linux?

    You may have seen the announcement this week that Microsoft is releasing SQL Server on Linux: https://blogs.microsoft.

  • The Case of the Missing Files

    The Case of the Missing Files

    An issue we come across on a regular basis is missing files in a file share. Usually it’s a frantic manger trying to…

  • Using PowerShell to Enable Remote Desktop

    Using PowerShell to Enable Remote Desktop

    I had a computer that I needed to remote into. I didn’t have any of my normal remote access tools installed on it, so I…

    2 条评论
  • The Latest News on OneDrive for Business from YamJam Review

    The Latest News on OneDrive for Business from YamJam Review

    The Latest News on OneDrive for Business from YamJam Review I checked out the OneDrive for Business YamJam today and…

社区洞察

其他会员也浏览了