MattGibson Posted December 15, 2014 Posted December 15, 2014 Apologies if this has already been asked, I was just wondering if we can disable OneDrive on 365? I cant find any Powershell scripts to turn off this tick box for plan: Office 365 ProPlus for Students. I was hoping we could use the -DisabledPlans command....
Marshall_IT Posted December 15, 2014 Posted December 15, 2014 How do you differentiate your student accounts from your staff ones? Group membership? Do you sync from ad?
MattGibson Posted December 15, 2014 Author Posted December 15, 2014 We are syncing from AD using DirSync. Applying licences based on the 'Department' property in AD which then allows us to assign Faculty/Student licences.
witch Posted December 16, 2014 Posted December 16, 2014 Can't you do it with groups? Everyone is enabled by default - remove that and redo the groups to suit?
MattGibson Posted December 16, 2014 Author Posted December 16, 2014 I don't think groups would solve this issue would it? , I'm happy with the powershell script I'm using. I don't want to activate exchange I just want students to take advantage of downloading a free copy of office which seems to be working but can't work out how to disable the OneDrive... Happy to investigate groups if you think it will?
Boredguy Posted December 16, 2014 Posted December 16, 2014 Well with the normal licences, it's a case of disabling sharepoint, but I've not paid much attention to the way the Student ProPlus is configured now, as last year it was only the download rights it gave the users =/
KWalker Posted January 26, 2015 Posted January 26, 2015 Hi Matt, This is the exact problem that I am looking for a solution to. Have you been able to resolve this with the use of PowerShell? Thanks, Kent.
PyROm Posted January 28, 2015 Posted January 28, 2015 Hi, we are trying to do the same (meant to be going live tomorrow), however cant disable onedrive, after going through finding sku`s and plans (ie checking on our system via powershell) I still cant get it to work. It adds the licenses to the students, but includes onedrive as well. code im trying to use $LicOptions = New-MsolLicenseOptions -AccountSkuId :OFFICESUBSCRIPTION_STUDENT -DisabledPlans ONEDRIVESTANDARD Get-MsolUser -All | where {$_.UserPrincipalName -like ""} | Set-MsolUserLicense -AddLicenses ":OFFICESUBSCRIPTION_STUDENT" -LicenseOptions $LicOptions
KWalker Posted January 28, 2015 Posted January 28, 2015 (edited) We have been able to resolve this with the help of MS premier support. Try the following (the csv has one column with a heading of UserPrincipalName and each users upn following on a new line each). Also replace xxxxxxxx with your tenant name. Code: $filePath = "d:\upn.csv" Import-Csv $filePath | ForEach { $upn = $_. $O365PP = New-MsolLicenseOptions -AccountSkuId Xxxxxxxxxxx:OFFICESUBSCRIPTION_STUDENT -DisabledPlans ONEDRIVESTANDARD write-host "assigning license for $upn ..." -foregroundcolor magenta Set-MsolUser -UserPrincipalName $upn -UsageLocation AU Set-MsolUserLicense -UserPrincipalName $upn -AddLicenses Xxxxxxxxxxx:OFFICESUBSCRIPTION_STUDENT -LicenseOptions $O365PP } Edited January 28, 2015 by KWalker 1
PyROm Posted January 28, 2015 Posted January 28, 2015 Thanks for the reply, just tried it and still no luck. Had to change the line $upn = $_. to read $upn = $_.UserPrincipleName Like before, it adds the license in, along with onedrive :/
PyROm Posted January 28, 2015 Posted January 28, 2015 OK, that's weird, both yours, and my original code work, using powershell to retrieve license status and logging in as user gives no onedrive, however the o365 administrator web portal shows onedrive box ticked under licenses.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now