Enable OpenID Connect (OIDC) authentication for syncing content from an on-prem SharePoint Server using the OneDrive sync app
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
When enabled, this setting allows the OneDrive sync app (OneDrive.exe) to authenticate requests to an on-premises SharePoint Server using OIDC authentication, if supported by the server. 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.
If you enable this setting, you can select one of two options:
Disable OIDC Authentication: The Sync app will not attempt to use OIDC authentication for communicating with SharePoint Server, even if the server is configured to support it.
Enable OIDC Authentication: The Sync app will attempt to use OIDC authentication for communicating with SharePoint Server if the server is configured to support it.
If you disable or do not configure this setting, the Sync app will attempt to use legacy network authentication schemes that the server supports.
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/SharePointOnPremOIDC
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Allow OIDC authentication
# Options possibles :
# Disable OIDC Authentication = 0
# Enable OIDC Authentication = 1
Set-ItemProperty -Path $k -Name 'SharePointOnPremOIDC' -Value 0 -Type DWordDésactiver
# Désactiver : OneDrive/SharePointOnPremOIDC
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : OneDrive/SharePointOnPremOIDC
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'SharePointOnPremOIDC' -ErrorAction SilentlyContinueOptions (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Allow OIDC authentication:SharePointOnPremOIDC_Dropdown | Liste déroulanteenum | SharePointOnPremOIDC | REG_DWORD | Choix par défaut (interface) : n° 0
|
Application
Microsoft OneDrive (Microsoft) — modèles d'octobre 2026
Modèles d'octobre 2026 issus de pl4nty/web-admx-tool.