Open in the explorer

Limit Windows File Protection cache size

Limiter la taille du cache de la Protection des fichiers Windows

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Windows File Protection FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Protection des fichiers Windows
Supported on
Windows Server 2003, Windows XP, and Windows 2000 only FR: Windows Server 2003, Windows XP et Windows 2000 uniquement
ADMX file
WindowsFileProtection.admx
Internal name
WindowsFileProtection/WFPQuota

Explanation

This policy setting specifies the maximum amount of disk space that can be used for the Windows File Protection file cache.

Windows File Protection adds protected files to the cache until the cache content reaches the quota. If the quota is greater than 50 MB, Windows File Protection adds other important Windows XP files to the cache until the cache size reaches the quota.

If you enable this policy setting, enter the maximum amount of disk space to be used (in MB). To indicate that the cache size is unlimited, select "4294967295" as the maximum amount of disk space.

If you disable this policy setting or do not configure it, the default value is set to 50 MB on Windows XP Professional and is unlimited (4294967295 MB) on Windows Server 2003.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie la quantité maximale d’espace disque pouvant être utilisée pour le cache de la Protection des fichiers Windows.

La Protection des fichiers Windows ajoute des fichiers protégés au cache jusqu’à ce que le contenu du cache atteigne le quota. Si le quota est supérieur à 50 Mo, la Protection des fichiers Windows ajoute d’autres fichiers Windows XP importants au cache jusqu’à ce que sa taille atteigne le quota.

Si vous activez ce paramètre de stratégie, entrez la quantité d’espace disque maximale à utiliser (en Mo). Pour indiquer une taille de cache illimitée, sélectionnez « 4294967295 » comme valeur maximale.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, la valeur par défaut est définie à 50 Mo sur Windows XP Professionnel et est illimitée (4294967295 Mo) sur Windows Server 2003.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Windows File Protection
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: WindowsFileProtection/WFPQuota
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Windows File Protection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Cache size (in MB)
Set-ItemProperty -Path $k -Name 'SfcQuota' -Value 50 -Type DWord  # maximum 4294967295

Disable

# Disable: WindowsFileProtection/WFPQuota
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": WindowsFileProtection/WFPQuota
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Windows File Protection'
Remove-ItemProperty -Path $k -Name 'SfcQuota' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Cache size (in MB)Taille du cache (en Mo)WFPQuota_SizeNumeric boxdecimalSfcQuotaREG_DWORD
Max: 4294967295 · Default (UI): 50

Availability