Open in the explorer

Specify the time for a daily quick scan

Spécifier l’heure d’une analyse rapide quotidienne

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus › Scan FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender › Analyse
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
WindowsDefender.admx
Internal name
WindowsDefender/Scan_ScheduleQuickScantime

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.

French text from Windows 11 26H2

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
StateValue written
Enablednot defined in the ADMX (see the options below)
Disablednot 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 1440

Disable

# 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 SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Specify the time for a daily quick scanSpécifier l’heure d’une analyse rapide quotidienneScan_ScheduleQuickScantimeNumeric boxdecimalScheduleQuickScanTimeREG_DWORD
Min: 0 · Max: 1440 · Default (UI): 120

Availability