Set BranchCache Hosted Cache mode: registry value LocationComputerHKLM\SOFTWARE\Policies\Microsoft\PeerDist\HostedCache\Connection
- Policy ID
- EnableWindowsBranchCache_Hosted
- Scope
- Computer Configuration
- Supported on
- At least Windows 7 or Windows Server 2008 R2*
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Network › BranchCache
Registry
Location
REG_SZComputer- Enabled value
- Depends on the option value
- Element
- Type the name of the hosted cache server
- Value type
- REG_SZ
- Required
- true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PeerDist\HostedCache\Connection] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "Location"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\SOFTWARE\Policies\Microsoft\PeerDist\HostedCache\Connection" /v "Location" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\PeerDist\HostedCache\Connection' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\PeerDist\HostedCache\Connection' -Name 'Location' -PropertyType String -Value '<enter value>' -Force | Out-Null