Specify Windows File Protection cache location
Spécifier l’emplacement du cache pour la Protection des fichiers Windows
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.
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 StringDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Cache file path:Chemin d’accès des fichiers en cache :WFPDllCacheDirBox | Text boxtext | SFCDllCacheDir | REG_SZ | Required |