Specify SharePoint Server URL and organization name
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 StringDisable
# 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 SilentlyContinueOptions (2)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| SharePoint Server 2019 URL:SharePointOnPremFrontDoorUrlBox | Text boxtext | SharePointOnPremFrontDoorUrl | REG_SZ | Required · Max length: 2000 |
| Organization name:SharePointOnPremTenantNameBox | Text boxtext | SharePointOnPremTenantName | REG_SZ | Required · Max length: 2000 |
Application
Microsoft OneDrive (Microsoft) — October 2026 templates
October 2026 templates from pl4nty/web-admx-tool.