Forum Discussion
Change OneDrive installation location
Hello
Is there any way to change OneDrive location i.e. instead of c:\useprofile\OneDrive-Tenant to D:\userprofile\onedrive-tenant? Because most of the user dont have much space on C drive.
I have powershell script to install ODB, is this possible to change the installation location thru the script.
Please advise.
Avian
- Avian 1Iron ContributorCan anyone please respond?
- Adam OchsSteel Contributor
Hello Avian 1,
I have not changed the instillation folder, but I may have an option that can accomplish what you want all the same. I had a client with this very problem. They had VMs and did not want to install tons of onedrive data onto there small machines.
OneDrive itself is a relatively small application. What ends up causing problems is where the users end up syncing files too. If they install in the C:\ drive thens tart syncing gigs of data, your drive is going to fill up quick.
Do you think it would be a viable option to install OneDrive in the normal location, but then go and change the sync file location to another drive? this would keep just the application files in the C drive, but all the "storage" onedrive was using would be where you want.
Just my 2 cents on how to approach the problem.
Adam- Avian 1Iron Contributor
Thanks for reply Adam.
I agree with your approach to install client in C drive and then change the storage location. On changing the location I have some queries
1. I am installing and configuring and migration the data using the script, is it possible to force the user to change data using instead of changing the location during ODB wizard or only way I can think off set the changing location thru ADMX (https://getadmx.com/?Category=OneDrive&Policy=Microsoft.Policies.OneDriveNGSC::DefaultRootDir) .
2. In case if it is sharing machines used by 2-3 users, if you change the location then theses 2-3 user can see other data as well, is there any way to prevent this?
Please advise
Avi
- Lou_MickleyBrass Contributor
Avian 1 - Microsoft's recommendation is to now install OneDrive using the "onedrivesetup.exe /allusers" and this installs the software only 1/machine in c:\program files (x86)\Microsoft OneDrive. The files being synced still need to be on the same drive as the install location.