Ne pas synchroniser en cas de connexion limitée
Do not sync on metered connections
Explication
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.
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.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\SettingSync- Nom de la valeur
DisableSyncOnPaidNetwork
| É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 : 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 DWordDésactiver
# Désactiver : 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 DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : SettingSync/DisableSyncOnPaidNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\SettingSync'
Remove-ItemProperty -Path $k -Name 'DisableSyncOnPaidNetwork' -ErrorAction SilentlyContinue