Set the default location for the OneDrive folder

This setting lets you set a specific path as the default location of the OneDrive folder on users' computers. By default, the path is under %userprofile%.

If you enable this setting, the default location of the OneDrive - {organization name} folder will be the path that you specify in the OneDrive.admx file. To prevent users from changing the location you specify, enable the "Prevent users from changing the location of their OneDrive folder" setting.

If you disable or do not configure this setting, the default location of the OneDrive - {organization name} folder will be in %userprofile%.

Supported on: At least Windows 7

Registry HiveHKEY_CURRENT_USER
Registry PathSOFTWARE\Policies\Microsoft\OneDrive
Value NameDefaultRootDir
Value TypeREG_DWORD
Enabled Value1
Disabled Value0

Specify the tenant ID and default path.

In the Value name field, enter the tenant ID. In the Value field, enter the path.

Path:

Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Microsoft\OneDrive\DefaultRootDir
Value Name{number}
Value TypeREG_EXPAND_SZ
Default Value

onedrive.admx

Administrative Templates (Computers)