GPO OneDrive
Posted by 3G_Lighting@reddit | sysadmin | View on Reddit | 13 comments
I would like to know what I need to set in the OneDrive GPO to force all our desktop users OneDrive to store all their files in the cloud ONLY, do not store them locally.
I checked Google and I keep seeing A LOT of how to disable OneDrive which I do not want. I just don't want folks storying the data locally as we work in an industry where their OneDrive files can be fairly large.
Thanks,
hullgreebles@reddit
I think you are looking for the Files on Demand policy. It only downloads placeholder files until a user actually opens the file they need. This saves on space as users don't download their entire library for no reason.
15_Tries_All_Taken@reddit
OneDrive will always need to download the file locally to open, assuming you are using the Office apps and not the browser. The closest I can think of is you could run a script to "dehydrate" the locally cached files using a login script. The example below should remove any local files older than 5 minutes. It has been a few years since I ran/tested this, so test at your own caution.
$CutoffTime = (Get-Date).AddMinutes(-5)
get-childitem $env:onedrivecommercial -File | where Attributes -eq 'Archive, ReparsePoint' | where LastAccessTime -le $CutOffTime | foreach {attrib.exe $_.fullname +U -P /s}
https://learn.microsoft.com/en-us/answers/questions/643601/fslogix-onedrive-for-business-cache-non-persistent
BigPete224@reddit
This is the solution.
OneDrive decides what to download or no longer cache based on these attributes. You change the attribute, then OneDrive deletes the cache.
Commercial_Growth343@reddit
This almost sounds to me like you want to disable onedrive on the client and force people to use the website to access their onedrive files. I worked in an environment that used citrix on RDS servers, and that is basically how we functioned for years because I didn't want to support Onedrive on a RDS server (I am not even sure that was possible TBH)
mckinnon81@reddit
What you're probably looking for is the Known Folder Move.
You can set an Intune Policy that will
Guid below should help you building policy that you need
https://www.anoopcnair.com/silently-move-known-folders-to-onedrive-intune/
FatBook-Air@reddit
That still doesn't prevent files from being local. In fact, to open a file locally, it must be stored locally first.
sryan2k1@reddit
You can't. OneDrive can't operate on files in the cloud, it has to download them.
3G_Lighting@reddit (OP)
So, what is this then?
Make your files online only - Microsoft Support
Thanks,
HankMardukasNY@reddit
That’s clearing the local copy of the file to free up space. Once the user clicks on that file again, the OneDrive client will download a local copy again.
FenixSoars@reddit
Yeah, I wish you luck. This is more a policy thing than something enforced via GPO..
You can move the known folders and do all those pieces.. but people will still have the ability to save locally unless you removed privileges from every folder except OneDrive.. but that won't work for what I hope are obvious reasons.
BrechtMo@reddit
see if you can tighten up "storage sense" settings to be more aggressive.
But that storage sense should kick in automatically anyway once the disk nears full. Onedrive should never completely fill up a drive. I'm not sure you want to go the path of completely disabling local caching as I think it greatly increases user comfort (especially for large files!)
Outside-After@reddit
Potentially https://learn.microsoft.com/en-us/sharepoint/use-group-policy#silently-move-windows-known-folders-to-onedrive?
In any case that page documents all the GPOs within the ADMX
dirtyredog@reddit
I don't think this is a thing. Users can select to remove files locally but when they use a file it's a requirement to download it locally.