Disallow downloads from Microsoft Connected Cache servers when the device connects via VPN: registry value DODisallowCacheServerDownloadsOnVPNComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization

Policy ID
DisallowCacheServerDownloadsOnVPN
Scope
Computer Configuration
Supported on
At least Windows 11 Version 22H2
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Delivery Optimization

Registry

DODisallowCacheServerDownloadsOnVPN

REG_DWORDComputer
Checked
1
Unchecked
0
Element
Disallow download from MCC over VPN
Value type
REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization]

; Options (use only one)
; Checked
"DODisallowCacheServerDownloadsOnVPN"=dword:00000001
; Unchecked
"DODisallowCacheServerDownloadsOnVPN"=dword:00000000
CMD
:: Options (use only one)

:: Checked
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DODisallowCacheServerDownloadsOnVPN" /t REG_DWORD /d 1 /f
:: Unchecked
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DODisallowCacheServerDownloadsOnVPN" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Force | Out-Null

# Options (use only one)
# Checked
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DODisallowCacheServerDownloadsOnVPN' -PropertyType DWord -Value 1 -Force | Out-Null
# Unchecked
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DODisallowCacheServerDownloadsOnVPN' -PropertyType DWord -Value 0 -Force | Out-Null