Control maximum size of baseline file cache: registry value MaxPatchCacheSizeComputerHKLM\Software\Policies\Microsoft\Windows\Installer

Policy ID
MSI_MaxPatchCacheSize
Scope
Computer Configuration
Supported on
Windows Installer v3.0
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Windows Installer

Registry

MaxPatchCacheSize

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Baseline file cache maximum size
Value type
REG_DWORD
Maximum value
100
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"MaxPatchCacheSize"=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\Windows\Installer" /v "MaxPatchCacheSize" /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\Windows\Installer' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Installer' -Name 'MaxPatchCacheSize' -PropertyType DWord -Value '<enter value>' -Force | Out-Null