Prevent users from changing the location of their OneDrive folder

This setting allows you to prevent users from changing the location of their OneDrive sync folder.

If you enable this setting, users cannot change the location of their OneDrive - {tenant name} folder during the Welcome to OneDrive wizard. This forces users to use either the default location, or, if you've set the "Set the default location for the OneDrive folder" setting, ensures all users have their local OneDrive folder in the location that you've specified.

If you disable this setting, users can change the location of their sync folder during the Welcome to OneDrive wizard.


Supported on: At least Windows 7
Registry HiveHKEY_CURRENT_USER
Registry PathSOFTWARE\Policies\Microsoft\OneDrive
Value NameDisableCustomRoot
Value TypeREG_DWORD
Enabled Value1
Disabled Value0

Specify tenant GUID and value of the setting. 1 for turning on this setting, 0 for turning off this setting

In the name field, type the tenant GUID. Enter 1 or 0 in the value field.

Tenant paths:

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

onedrive.admx