Trigger a quick scan after X days without any scans
Déclencher une analyse rapide après X jours sans aucune analyse
Explanation
This policy setting defines the number of days that can pass since the last scan before an aggresive catchup quick scan is automatically triggered. The value represents the number of days that can pass without any scans being performed before an agressive quick scan will be triggered.
Valid values range from 7 to 60 days. If not configured, aggressive quick scans will be disabled. By default, the value is set to 25 days when enabled.
Ce paramètre de stratégie définit le nombre de jours qui peuvent s'écouler depuis la dernière analyse avant qu'une analyse rapide de rattrapage agressive ne soit automatiquement déclenchée. La valeur représente le nombre de jours qui peuvent s'écouler sans qu'aucune analyse ne soit effectuée avant qu'une analyse rapide agressive ne soit déclenchée.
Les valeurs valides vont de 7 à 60 jours. S'il n'est pas configuré, les analyses rapides agressives seront désactivées. Par défaut, la valeur est définie sur 25 jours lorsqu'elle est activée.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Scan- Value name
DaysUntilAggressiveCatchupQuickScan
| 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_DaysUntilAggressiveCatchupQuickScan
$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 'DaysUntilAggressiveCatchupQuickScan' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
# Specify how many days without scans should pass before an aggressive quick scan is triggered
Set-ItemProperty -Path $k -Name 'DaysUntilAggressiveCatchupQuickScan' -Value 25 -Type DWord # between 7 and 60Disable
# Disable: WindowsDefender/Scan_DaysUntilAggressiveCatchupQuickScan
$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 'DaysUntilAggressiveCatchupQuickScan' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsDefender/Scan_DaysUntilAggressiveCatchupQuickScan
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Scan'
Remove-ItemProperty -Path $k -Name 'DaysUntilAggressiveCatchupQuickScan' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Specify how many days without scans should pass before an aggressive quick scan is triggeredSpécifiez le nombre de jours sans analyse avant le déclenchement d’une analyse rapide ne soit déclenchée.Scan_DaysUntilAggressiveCatchupQuickScan | Numeric boxdecimal | DaysUntilAggressiveCatchupQuickScan | REG_DWORD | Min: 7 · Max: 60 · Default (UI): 25 |