Specify SharePoint Server URL and organization name
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
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.
Registre
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive- Nom de la valeur
- non défini dans l'ADMX
Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : 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 '<valeur>' -Type String
# Organization name
Set-ItemProperty -Path $k -Name 'SharePointOnPremTenantName' -Value '<valeur>' -Type StringDésactiver
# Désactiver : OneDrive/SharePointOnPremFrontDoorUrl
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : 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)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails |
|---|---|---|---|---|
| SharePoint Server 2019 URL:SharePointOnPremFrontDoorUrlBox | Zone de textetext | SharePointOnPremFrontDoorUrl | REG_SZ | Obligatoire · Longueur max : 2000 |
| Organization name:SharePointOnPremTenantNameBox | Zone de textetext | SharePointOnPremTenantName | REG_SZ | Obligatoire · Longueur max : 2000 |
Application
Microsoft OneDrive (Microsoft) — modèles d'octobre 2026
Modèles d'octobre 2026 issus de pl4nty/web-admx-tool.