Prevent users from syncing libraries and folders shared from other organizations
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 controls whether users in your organization are allowed to sync OneDrive for Business or SharePoint content that has been shared by users in a different organization. This is a collaboration feature called B2B Sync.
If you enable this setting, users will not be able to start syncing a OneDrive for Business or SharePoint library or folder that was shared from an external organization. Any shared libraries or folders already being synced will stop syncing.
If you disable or do not configure this setting, users will be able to sync OneDrive for Business and SharePoint libraries and folders that have been shared from external organizations.
For more info about B2B Sync, see: https://learn.microsoft.com/sharepoint/b2b-sync
Registre
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive- Nom de la valeur
BlockExternalSync
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
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/BlockExternalSync
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'BlockExternalSync' -Value 1 -Type DWordDésactiver
# Désactiver : OneDrive/BlockExternalSync
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'BlockExternalSync' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : OneDrive/BlockExternalSync
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'BlockExternalSync' -ErrorAction SilentlyContinueApplication
Microsoft OneDrive (Microsoft) — modèles d'octobre 2026
Modèles d'octobre 2026 issus de pl4nty/web-admx-tool.