Specify the interval to run quick scans per day
Spécifier l’intervalle d’exécution des analyses rapides par jour
Explanation
This policy setting allows you to specify an interval at which to perform a quick scan. The time value is represented as the number of hours between quick scans. Valid values range from 1 (every hour) to 24 (once per day). If set to zero, interval quick scans will not occur. By default, this setting is set to 0.
If you enable this setting, a quick scan will run at the interval specified.
If you disable or do not configure this setting, quick scan controlled by this config will not be run.
Ce paramètre de stratégie vous permet de spécifier un intervalle pour effectuer une analyse rapide. La valeur de l’heure est représentée sous la forme du nombre d’heures entre les analyses rapides. Les valeurs valides sont comprises entre 1 (toutes les heures) et 24 (une fois par jour). Si cette valeur est définie sur zéro, les analyses rapides d’intervalles n’auront pas lieu. Par défaut, ce paramètre est défini sur 0.
Si vous activez ce paramètre, une analyse rapide est exécutée selon l’intervalle spécifié.
Si vous désactivez ou ne configurez pas ce paramètre, l’analyse rapide contrôlée par cette configuration ne sera pas exécutée.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Scan- Value name
QuickScanInterval
| 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_QuickScanInterval
$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 'QuickScanInterval' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
# Specify the interval to run quick scans per day
Set-ItemProperty -Path $k -Name 'QuickScanInterval' -Value 0 -Type DWord # between 0 and 24Disable
# Disable: WindowsDefender/Scan_QuickScanInterval
$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 'QuickScanInterval' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsDefender/Scan_QuickScanInterval
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Scan'
Remove-ItemProperty -Path $k -Name 'QuickScanInterval' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Specify the interval to run quick scans per daySpécifier l’intervalle d’exécution des analyses rapides par jourScan_QuickScanInterval | Numeric boxdecimal | QuickScanInterval | REG_DWORD | Min: 0 · Max: 24 · Default (UI): 0 |