Specify the time for a daily quick scan
Spécifier l’heure d’une analyse rapide quotidienne
Explanation
This policy setting allows you to specify the time of day at which to perform a daily quick scan. The time value is represented as the number of minutes past midnight (00:00). For example, 120 (0x78) is equivalent to 02:00 AM. By default, this setting is set to disabled. The schedule is based on local time on the computer where the scan is executing.
If you enable this setting, a daily quick scan will run at the time of day specified.
If you disable or do not configure this setting, daily quick scan controlled by this config will not be run.
Ce paramètre de stratégie vous permet de spécifier l’heure de la journée à laquelle effectuer une analyse rapide quotidienne. La valeur de l’heure est représentée sous la forme d’un nombre de minutes ayant dépassé minuit (00:00). Par exemple, 120 (0x78) est équivalent à 02:00 AM. Par défaut, ce paramètre est défini sur désactivé. La planification est basée sur l’heure locale de l’ordinateur sur lequel l’analyse est en cours d’exécution.
Si vous activez ce paramètre, une analyse rapide quotidienne est exécutée à l’heure de la journée spécifiée.
Si vous désactivez ou ne configurez pas ce paramètre, l’analyse rapide quotidienne contrôlée par cette configuration ne sera pas exécutée.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Scan- Value name
ScheduleQuickScanTime
| 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_ScheduleQuickScantime
$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 'ScheduleQuickScanTime' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
# Specify the time for a daily quick scan
Set-ItemProperty -Path $k -Name 'ScheduleQuickScanTime' -Value 120 -Type DWord # between 0 and 1440Disable
# Disable: WindowsDefender/Scan_ScheduleQuickScantime
$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 'ScheduleQuickScanTime' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsDefender/Scan_ScheduleQuickScantime
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Scan'
Remove-ItemProperty -Path $k -Name 'ScheduleQuickScanTime' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Specify the time for a daily quick scanSpécifier l’heure d’une analyse rapide quotidienneScan_ScheduleQuickScantime | Numeric boxdecimal | ScheduleQuickScanTime | REG_DWORD | Min: 0 · Max: 1440 · Default (UI): 120 |