Define the number of days after which a catch-up scan is forced
Définir le nombre de jours après lequel une analyse de rattrapage est forcée
Explanation
This policy setting allows you to define the number of consecutive scheduled scans that can be missed after which a catch-up scan will be forced. By default, the value of this setting is 2 consecutive scheduled scans.
If you enable this setting, a catch-up scan will occur after the specified number consecutive missed scheduled scans.
If you disable or do not configure this setting, a catch-up scan will occur after the 2 consecutive missed scheduled scans.
Ce paramètre de stratégie vous permet de définir le nombre d'analyses planifiées consécutives qui peuvent être manquées après lequel une analyse de rattrapage sera forcée. Par défaut, la valeur de ce paramètre est de 2 analyses planifiées consécutives.
Si vous activez ce paramètre, une analyse de rattrapage s'effectue lorsque le nombre spécifié d'analyses planifiées consécutives manquées est atteint.
Si vous désactivez ou ne configurez pas ce paramètre, une analyse de rattrapage aura lieu après 2 analyses planifiées consécutives manquées.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Scan- Value name
MissedScheduledScanCountBeforeCatchup
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX (see the options below) |
| Disabled | 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.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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: WindowsDefender/Scan_MissedScheduledScanCountBeforeCatchup
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Scan'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'MissedScheduledScanCountBeforeCatchup' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
# Define the number of scheduled scans that can be missed after which a catch-up scan is forced
Set-ItemProperty -Path $k -Name 'MissedScheduledScanCountBeforeCatchup' -Value 2 -Type DWord # between 2 and 20Disable
# Disable: WindowsDefender/Scan_MissedScheduledScanCountBeforeCatchup
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Scan'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'MissedScheduledScanCountBeforeCatchup' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsDefender/Scan_MissedScheduledScanCountBeforeCatchup
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Scan'
Remove-ItemProperty -Path $k -Name 'MissedScheduledScanCountBeforeCatchup' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Define the number of scheduled scans that can be missed after which a catch-up scan is forcedDéfinir le nombre d'analyses planifiées pouvant être manquées et après lequel une analyse de rattrapage est forcéeScan_MissedScheduledScanCountBeforeCatchup | Numeric boxdecimal | MissedScheduledScanCountBeforeCatchup | REG_DWORD | Min: 2 · Max: 20 · Default (UI): 2 |