Open in the explorer

Set Windows File Protection scanning

Définir l’analyse 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/WFPScan

Explanation

This policy setting allows you to set when Windows File Protection scans protected files. This policy setting directs Windows File Protection to enumerate and scan all system files for changes.

If you enable this policy setting, select a rate from the "Scanning Frequency" box. You can use this setting to direct Windows File Protection to scan files more often.

-- "Do not scan during startup," the default, scans files only during setup.

-- "Scan during startup" also scans files each time you start Windows XP. This setting delays each startup.

If you disable or do not configure this policy setting, by default, files are scanned only during setup.

Note: This policy setting affects file scanning only. It does not affect the standard background file change detection that Windows File Protection provides.

French text from Windows 11 26H2

Ce paramètre de stratégie permet de définir à quel moment la Protection des fichiers Windows analyse les fichiers protégés. Ce paramètre force la Protection des fichiers Windows à énumérer et à analyser tous les fichiers système afin de détecter des modifications.

Si vous activez ce paramètre de stratégie, sélectionnez une fréquence dans la zone « Fréquence d’analyse ». Vous pouvez utiliser ce paramètre afin de forcer la Protection des fichiers Windows à analyser les fichiers plus fréquemment.

-- « Ne pas analyser lors du démarrage », la valeur par défaut, n’analyse les fichiers qu’au moment de l’installation.

-- « Analyser lors du démarrage » analyse également les fichiers à chaque démarrage de Windows XP. Ce paramètre retarde chaque démarrage.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, par défaut, les fichiers ne sont analysés qu’au moment de l’installation.

Remarque : ce paramètre de stratégie n’affecte que l’analyse des fichiers. Il n’affecte pas la détection standard de modification de fichier en tâche de fond, fournie par la Protection des fichiers Windows.

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/WFPScan
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Windows File Protection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Scanning frequency
# Possible options:
#   Do not scan during startup = 0
#   Scan during startup = 1
Set-ItemProperty -Path $k -Name 'SfcScan' -Value 0 -Type DWord

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Scanning frequency:Fréquence d’analyse :WFPScanListDrop-down listenumSfcScanREG_DWORD
Required · Default choice (UI): #0
LabelValue
Do not scan during startupREG_DWORD = 0
Scan during startupREG_DWORD = 1

Availability