Set age for segments in the data cache: registry value SegmentTTLComputerHKLM\SOFTWARE\Policies\Microsoft\PeerDist\Retrieval
- Policy ID
- SetDataCacheEntryMaxAge
- Scope
- Computer Configuration
- Supported on
- At least Windows Server 2012, Windows 8 or Windows RT
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Network › BranchCache
Registry
SegmentTTL
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- -
- Value type
- REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PeerDist\Retrieval] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "SegmentTTL"=dword:<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\Retrieval" /v "SegmentTTL" /t REG_DWORD /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\Retrieval' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\PeerDist\Retrieval' -Name 'SegmentTTL' -PropertyType DWord -Value '<enter value>' -Force | Out-Null