Prevent users from changing the location of their OneDrive folder

This setting lets you block users from changing the location of their OneDrive - {organization name} folder during setup of the OneDrive sync app.

If you enable this setting, the "Change location" link is hidden in OneDrive Setup. The OneDrive folder will be created in the default location, or in the custom location you specified if you enabled the "Set the default location for the OneDrive folder" setting.

If you disable or do not configure this setting, users can click the "Change location" link to change the location of their OneDrive folder in OneDrive Setup.

Supported on: At least Windows 7

Registry PathSOFTWARE\Policies\Microsoft\OneDrive
Value NameDisableCustomRoot
Enabled Value1
Disabled Value0

Specify the tenant ID and value of the setting.

In the Value name field, enter the tenant ID. In the Value field, enter 1 to enable the setting or 0 to disable it.

Change location setting:

Registry PathSoftware\Policies\Microsoft\OneDrive\DisableCustomRoot
Value Name{number}
Value TypeREG_SZ
Default Value


Administrative Templates (Computers)