
HKCU\Software\Microsoft\OneDrive\OneDriveTrigger to C:\Program Files\Microsoft OneDrive\OneDrive. In my OneDrive GPO I had to modify the regs below under User Preferences which fixed the keys for users who had already previously logged into a machine and ran the baked in OneDrive from AppData rather than Program Files However, the OneDrive application is started when a user logs in. Step 1: Install the OneDrive client Check to see if the OneDrive client is installed on your laptop by searching for OneDrive in the search bar in the top. #If Variable returns True, remove the OneDriveSetup Value For our automatic build setup, we needed to fetch some files off a Sharepoint Library. instead of c:\useprofile\OneDrive-Tenant to D:\userprofile\onedrive-tenant Because most of the user dont have much space on C drive. $OneDriveSetup = Get-ItemProperty "HKUDefaultHive:\DefaultHive\Software\Microsoft\Wi ndows\CurrentVersion\Run" | Select -ExpandProperty "OneDriveSetup" Avian 1 Frequent Contributor 01:14 AM Change OneDrive installation location Hello Is there any way to change OneDrive location i.e.


Reg Load "HKU\DefaultHive" "C:\Users\Default\NTUser.dat"

New-PSDrive -PSProvider Registry -Name HKUDefaultHive -Root HKEY_USERS Created an application in SCCM using OneDriveSetup.exe /AllUsers and deployedĬreated a package and deployed the below Powershell script using a command of "%Windir%\sysnative\WindowsPowerShell\v1.0\powersh ell.exe" -ExecutionPolicy Bypass -Command.
