Ouvrir dans l'explorateur

Limiter la taille du cache de la Protection des fichiers Windows

Limit Windows File Protection cache size

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Système › Protection des fichiers Windows EN : Computer Configuration › Policies › Administrative Templates › System › Windows File Protection
Pris en charge sur
Windows Server 2003, Windows XP et Windows 2000 uniquement EN : Windows Server 2003, Windows XP, and Windows 2000 only
Fichier ADMX
WindowsFileProtection.admx
Nom interne
WindowsFileProtection/WFPQuota

Explication

Texte français issu de 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.

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.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Windows File Protection
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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 }
# Taille du cache (en Mo)
Set-ItemProperty -Path $k -Name 'SfcQuota' -Value 50 -Type DWord  # maximum 4294967295

Désactiver

# Désactiver : WindowsFileProtection/WFPQuota
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : WindowsFileProtection/WFPQuota
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Windows File Protection'
Remove-ItemProperty -Path $k -Name 'SfcQuota' -ErrorAction SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Taille du cache (en Mo)Cache size (in MB)WFPQuota_SizeZone numériquedecimalSfcQuotaREG_DWORD
Max : 4294967295 · Défaut (interface) : 50

Disponibilité