Change OneDrive installation location

%3CLINGO-SUB%20id%3D%22lingo-sub-225064%22%20slang%3D%22en-US%22%3EChange%20OneDrive%20installation%20location%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225064%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20to%20change%20OneDrive%20location%20i.e.%20instead%20of%20c%3A%5Cuseprofile%5COneDrive-Tenant%20to%20D%3A%5Cuserprofile%5Conedrive-tenant%3F%20Because%20most%20of%20the%20user%20dont%20have%20much%20space%20on%20C%20drive.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20powershell%20script%20to%20install%20ODB%2C%20is%20this%20possible%20to%20change%20the%20installation%20location%20thru%20the%20script.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20advise.%3C%2FP%3E%3CP%3EAvian%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-225064%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228073%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Change%20OneDrive%20installation%20location%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228073%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Avian%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Yes%20through%20a%20group%20policy%2Fadmx%20seems%20best%2C%20i%20would%20agree%20with%20that%20approach.%3C%2FP%3E%3CP%3E2.%20I%20would%20think%20you%20could%20troubleshoot%20that%20by%20adding%20in%20separate%20accounts.%20The%20new%20%22Next%20gen%22%20oneDrive%20sync%20client%20allows%20you%20to%20run%20multiple%20one%20drive%20accounts%20on%20the%20same%20machine.%20So%20even%20on%20my%20work%20laptop%20I%20have%20three%20instances%20of%20onedrive%20running%20on%20the%20same%20windows%20profile%20(my%20work%2C%20my%20personal%2C%20my%20lab).%20I%20am%20not%20sure%20how%20you%20use%20group%20policy%20to%20do%20it%20(from%20above)%20but%20i%20would%20think%20if%20you%20had%20a%20computer%203%20people%20were%20using%20you%20could%20do%20like%20D%3A%2FPerson1OD%2F%2C%20D%3A%2FPerson2OD%2F%20D%3A%2FPerson3OD%2F%20and%20just%20point%20each%20person%20to%20their%20respective%20folders.%3CBR%20%2F%3E%3CBR%20%2F%3EPutting%20them%20in%20the%20same%20folder%20i%20think%20would%20cause%20you%20all%20sorts%20of%20sync%20issues%2C%20so%20i%20would%20100%25%20try%20to%20figure%20out%20a%20way%20to%20do%20the%20seperate%20folders%20for%20each%20user.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGoodluck%2C%20and%20let%20me%20know%20how%20it%20goes!%3CBR%20%2F%3EAdam%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-228020%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Change%20OneDrive%20installation%20location%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-228020%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20reply%20Adam.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20agree%20with%20your%20approach%20to%20install%20client%20in%20C%20drive%20and%20then%20change%20the%20storage%20location.%20On%20changing%20the%20location%20I%20have%20some%20queries%3C%2FP%3E%3CP%3E1.%20I%20am%20installing%20and%20configuring%20and%20migration%20the%20data%20using%20the%20script%2C%20is%20it%20possible%20to%20force%20the%20user%20to%20change%20data%20using%20instead%20of%20changing%20the%20location%20during%20ODB%20wizard%20or%20only%20way%20I%20can%20think%20off%20set%20the%20changing%20location%20thru%20ADMX%26nbsp%3B%20(%3CA%20href%3D%22https%3A%2F%2Fgetadmx.com%2F%3FCategory%3DOneDrive%26amp%3BPolicy%3DMicrosoft.Policies.OneDriveNGSC%3A%3ADefaultRootDir%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgetadmx.com%2F%3FCategory%3DOneDrive%26amp%3BPolicy%3DMicrosoft.Policies.OneDriveNGSC%3A%3ADefaultRootDir%3C%2FA%3E)%20.%3C%2FP%3E%3CP%3E2.%20In%20case%20if%20it%20is%20sharing%20machines%20used%20by%202-3%20users%2C%20if%20you%20change%20the%20location%20then%20theses%202-3%20user%20can%20see%20other%20data%20as%20well%2C%20is%20there%20any%20way%20to%20prevent%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20advise%3C%2FP%3E%3CP%3EAvi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-226713%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Change%20OneDrive%20installation%20location%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-226713%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F35729%22%20target%3D%22_blank%22%3E%40Avian%201%3C%2FA%3E%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20not%20changed%20the%20instillation%20folder%2C%20but%20I%20may%20have%20an%20option%20that%20can%20accomplish%20what%20you%20want%20all%20the%20same.%20I%20had%20a%20client%20with%20this%20very%20problem.%20They%20had%20VMs%20and%20did%20not%20want%20to%20install%20tons%20of%20onedrive%20data%20onto%20there%20small%20machines.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EOneDrive%20itself%20is%20a%20relatively%20small%20application.%20What%20ends%20up%20causing%20problems%20is%20where%20the%20users%20end%20up%20syncing%20files%20too.%20If%20they%20install%20in%20the%20C%3A%5C%20drive%20thens%20tart%20syncing%20gigs%20of%20data%2C%20your%20drive%20is%20going%20to%20fill%20up%20quick.%3CBR%20%2F%3E%3CBR%20%2F%3EDo%20you%20think%20it%20would%20be%20a%20viable%20option%20to%20install%20OneDrive%20in%20the%20normal%20location%2C%20but%20then%20go%20and%20change%20the%20sync%20file%20location%20to%20another%20drive%3F%20this%20would%20keep%20just%20the%20application%20files%20in%20the%20C%20drive%2C%20but%20all%20the%20%22storage%22%20onedrive%20was%20using%20would%20be%20where%20you%20want.%3CBR%20%2F%3E%3CBR%20%2F%3EJust%20my%202%20cents%20on%20how%20to%20approach%20the%20problem.%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-225696%22%20slang%3D%22en-US%22%3ERE%3A%20Change%20OneDrive%20installation%20location%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225696%22%20slang%3D%22en-US%22%3ECan%20anyone%20please%20respond%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1097161%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20OneDrive%20installation%20location%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1097161%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F35729%22%20target%3D%22_blank%22%3E%40Avian%201%3C%2FA%3E%26nbsp%3B-%20Microsoft's%20recommendation%20is%20to%20now%20install%20OneDrive%20using%20the%20%22onedrivesetup.exe%20%2Fallusers%22%20and%20this%20installs%20the%20software%20only%201%2Fmachine%20in%20c%3A%5Cprogram%20files%20(x86)%5CMicrosoft%20OneDrive.%26nbsp%3B%20The%20files%20being%20synced%20still%20need%20to%20be%20on%20the%20same%20drive%20as%20the%20install%20location.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

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

 

 

5 Replies
Highlighted
Can anyone please respond?
Highlighted

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

Highlighted

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

 

Highlighted

Hey Avian,

 

1. Yes through a group policy/admx seems best, i would agree with that approach.

2. I would think you could troubleshoot that by adding in separate accounts. The new "Next gen" oneDrive sync client allows you to run multiple one drive accounts on the same machine. So even on my work laptop I have three instances of onedrive running on the same windows profile (my work, my personal, my lab). I am not sure how you use group policy to do it (from above) but i would think if you had a computer 3 people were using you could do like D:/Person1OD/, D:/Person2OD/ D:/Person3OD/ and just point each person to their respective folders.

Putting them in the same folder i think would cause you all sorts of sync issues, so i would 100% try to figure out a way to do the seperate folders for each user.

 

Goodluck, and let me know how it goes!
Adam

 

Highlighted

@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.