Prevent OneDrive files from syncing over metered connections
Empêcher la synchronisation des fichiers OneDrive sur les connexions limitées
Explanation
This policy setting allows configuration of OneDrive file sync behavior on metered connections.
Ce paramètre de stratégie permet de configurer le comportement de synchronisation des fichiers OneDrive sur les connexions limitées.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\OneDrive- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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: SkyDrive/PreventOneDriveFileSyncOnMeteredNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Metered Network Setting
# Possible options:
# Block syncing on all metered connections = 0
# Block syncing on metered connections only when roaming = 1
Set-ItemProperty -Path $k -Name 'DisableMeteredNetworkFileSync' -Value 0 -Type DWordDisable
# Disable: SkyDrive/PreventOneDriveFileSyncOnMeteredNetwork
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": SkyDrive/PreventOneDriveFileSyncOnMeteredNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\OneDrive'
Remove-ItemProperty -Path $k -Name 'DisableMeteredNetworkFileSync' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Metered Network SettingParamètre de connexion réseau limitéeOneDriveMeteredNetwork_Dropdown | Drop-down listenum | DisableMeteredNetworkFileSync | REG_DWORD | Default choice (UI): #0
|