Open in the explorer

Specify SharePoint Server URL and organization name

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › OneDrive
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
OneDrive.admx
Internal name
OneDrive/SharePointOnPremFrontDoorUrl

Explanation

This setting lets you enable users to use the OneDrive sync app (OneDrive.exe) to sync files in SharePoint Server 2019. The URL defines the location of the SharePoint Server and enables the sync app to authenticate and set up sync. The organization name lets you specify the OneDrive and SharePoint folder names that will be created in File Explorer. The organization name is optional. If you don't provide it, the sync app will use the first segment of the URL as the name. For example, office.sharepoint.com would become "Office," and the OneDrive folder name would be "OneDrive - Office."

If you enable this setting and provide the SharePoint Server URL, users will be able to sync files in SharePoint Server 2019.

If you disable or do not configure this setting, or do not provide the SharePoint Server URL, users will not be able to sync files in SharePoint Server 2019.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: OneDrive/SharePointOnPremFrontDoorUrl
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# SharePoint Server 2019 URL
Set-ItemProperty -Path $k -Name 'SharePointOnPremFrontDoorUrl' -Value '<value>' -Type String
# Organization name
Set-ItemProperty -Path $k -Name 'SharePointOnPremTenantName' -Value '<value>' -Type String

Disable

# Disable: OneDrive/SharePointOnPremFrontDoorUrl
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": OneDrive/SharePointOnPremFrontDoorUrl
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'SharePointOnPremFrontDoorUrl' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SharePointOnPremTenantName' -ErrorAction SilentlyContinue

Options (2)

LabelControlRegistry valueREG typeConstraints / details
SharePoint Server 2019 URL:SharePointOnPremFrontDoorUrlBoxText boxtextSharePointOnPremFrontDoorUrlREG_SZ
Required · Max length: 2000
Organization name:SharePointOnPremTenantNameBoxText boxtextSharePointOnPremTenantNameREG_SZ
Required · Max length: 2000

Application

Microsoft OneDrive (Microsoft) — October 2026 templates

October 2026 templates from pl4nty/web-admx-tool.