Open in the explorer

Specify Windows File Protection cache location

Spécifier l’emplacement du cache pour 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/WFPDllCacheDir

Explanation

This policy setting specifies an alternate location for the Windows File Protection cache.

If you enable this policy setting, enter the fully qualified local path to the new location in the "Cache file path" box.

If you disable this setting or do not configure it, the Windows File Protection cache is located in the %Systemroot%\System32\Dllcache directory.

Note: Do not put the cache on a network shared directory.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie un autre emplacement pour le cache de la Protection des fichiers Windows.

Si vous activez ce paramètre de stratégie, entrez le chemin d’accès local complet au nouvel emplacement dans la zone « Chemin d’accès des fichiers en cache ».

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, le cache de la Protection des fichiers Windows est situé dans le répertoire %Systemroot%\System32\Dllcache.

Remarque : ne placez pas le cache dans un répertoire réseau partagé.

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/WFPDllCacheDir
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Windows File Protection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Cache file path
Set-ItemProperty -Path $k -Name 'SFCDllCacheDir' -Value '<value>' -Type String

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Cache file path:Chemin d’accès des fichiers en cache :WFPDllCacheDirBoxText boxtextSFCDllCacheDirREG_SZ
Required

Availability