Cache Server Hostname Source: registry value DOCacheHostSourceComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization

Policy ID
CacheHostSource
Scope
Computer Configuration
Supported on
At least Windows Server 2016, Windows 10
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Delivery Optimization

Registry

DOCacheHostSource

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Cache Server Hostname Source:
Options
ItemStored value
DHCP Option 2351
DHCP Option 235 Force2
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Options (use only one)
; DHCP Option 235
"DOCacheHostSource"=dword:00000001
; DHCP Option 235 Force
"DOCacheHostSource"=dword:00000002
CMD
:: Options (use only one)

:: DHCP Option 235
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOCacheHostSource" /t REG_DWORD /d 1 /f
:: DHCP Option 235 Force
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOCacheHostSource" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Force | Out-Null

# Options (use only one)
# DHCP Option 235
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DOCacheHostSource' -PropertyType DWord -Value 1 -Force | Out-Null
# DHCP Option 235 Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DOCacheHostSource' -PropertyType DWord -Value 2 -Force | Out-Null