Specify the OneDrive location in a hybrid environment

This setting defines whether the OneDrive sync app (OneDrive.exe) should authenticate against SharePoint Online or SharePoint Server 2019 if the identity exists in both identity providers. To use this setting, you must also enable "Specify SharePoint Server URL and organization name". This setting affects only OneDrive for Business sync functionality. It does not impact syncing team sites in SharePoint Online or SharePoint Server 2019.

If you enable this setting, you can select one of two options:

SharePoint Online: The sync app will look first in SharePoint Online for a user's OneDrive. If the sync app is already configured with SharePoint Online for the user, it will attempt to configure a OneDrive for Business instance in SharePoint Server 2019 for that user.

SharePoint Server 2019: The sync app will look first in SharePoint Server 2019 for a user's OneDrive for Business. If the sync app is already configured with SharePoint Server 2019 for the user, it will attempt to configure a OneDrive instance in SharePoint Online for that user.

If you disable or do not configure this setting, the sync app will look first in SharePoint Online for the user's OneDrive.

Supported on: At least Windows 7

Authenticate first against:


  1. SharePoint Online
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\OneDrive
    Value NameSharePointOnPremPrioritization
    Value TypeREG_DWORD
    Value0
  2. SharePoint Server 2019
    Registry HiveHKEY_LOCAL_MACHINE
    Registry PathSOFTWARE\Policies\Microsoft\OneDrive
    Value NameSharePointOnPremPrioritization
    Value TypeREG_DWORD
    Value1


onedrive.admx

Administrative Templates (Computers)