Open in the explorer

Prevent OneDrive files from syncing over metered connections

Empêcher la synchronisation des fichiers OneDrive sur les connexions limitées

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › OneDrive FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › OneDrive
Supported on
Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1 only FR: Windows Server 2012 R2, Windows 8.1 ou Windows RT 8.1 uniquement
ADMX file
SkyDrive.admx
Internal name
SkyDrive/PreventOneDriveFileSyncOnMeteredNetwork

Explanation

This policy setting allows configuration of OneDrive file sync behavior on metered connections.

French text from Windows 11 26H2

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 DWord

Disable

# 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 SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Metered Network SettingParamètre de connexion réseau limitéeOneDriveMeteredNetwork_DropdownDrop-down listenumDisableMeteredNetworkFileSyncREG_DWORD
Default choice (UI): #0
LabelValue
Block syncing on all metered connectionsREG_DWORD = 0
Block syncing on metered connections only when roamingREG_DWORD = 1

Availability