Allow updates to be downloaded automatically over metered connections
Autoriser le téléchargement automatique des mises à jour sur les connexions limitées
Explanation
Enabling this policy will automatically download updates, even over metered data connections (charges may apply)
L'activation de cette stratégie téléchargera automatiquement les mises à jour, même sur des connexions limitées (des frais peuvent s'appliquer)
Use cases
Allows automatic update downloads on metered connections (cellular, mobile hotspot). Microsoft recommends the value 1 so that users with only a cellular connection still receive their patches.
Weigh it against the data plans of mobile devices: a cumulative update can weigh several hundred MB.
Microsoft source: Update policies
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate- Value name
AllowAutoWindowsUpdateDownloadOverMeteredNetwork
| 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: WindowsUpdate/AllowAutoWindowsUpdateDownloadOverMeteredNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowAutoWindowsUpdateDownloadOverMeteredNetwork' -Value 1 -Type DWordDisable
# Disable: WindowsUpdate/AllowAutoWindowsUpdateDownloadOverMeteredNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowAutoWindowsUpdateDownloadOverMeteredNetwork' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsUpdate/AllowAutoWindowsUpdateDownloadOverMeteredNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
Remove-ItemProperty -Path $k -Name 'AllowAutoWindowsUpdateDownloadOverMeteredNetwork' -ErrorAction SilentlyContinue