Do not sync on metered connections
Ne pas synchroniser en cas de connexion limitée
Explanation
Prevent syncing to and from this PC when on metered Internet connections. This turns off and disables "sync your settings on metered connections" switch on the "sync your settings" page in PC Settings.
If you enable this policy setting, syncing on metered connections will be turned off, and no syncing will take place when this PC is on a metered connection.
If you do not set or disable this setting, syncing on metered connections is configurable by the user.
Empêche la synchronisation avec cet ordinateur en cas de connexions Internet limitées. Cela désactive l’interrupteur « Synchroniser vos paramètres via des connexions limitées » dans la page « Synchroniser vos paramètres » des Paramètres du PC.
Si vous activez ce paramètre de stratégie, la synchronisation à travers des connexions limitées est désactivée.
Si vous ne définissez pas ou si vous désactivez ce paramètre, la synchronisation à travers des connexions limitées est configurable par l’utilisateur.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\SettingSync- Value name
DisableSyncOnPaidNetwork
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: SettingSync/DisableSyncOnPaidNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\SettingSync'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableSyncOnPaidNetwork' -Value 1 -Type DWordDisable
# Disable: SettingSync/DisableSyncOnPaidNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\SettingSync'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableSyncOnPaidNetwork' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": SettingSync/DisableSyncOnPaidNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\SettingSync'
Remove-ItemProperty -Path $k -Name 'DisableSyncOnPaidNetwork' -ErrorAction SilentlyContinue