Open in the explorer

Configure scheduled task times randomization window

Fenêtre Configurer la randomisation des heures des tâches planifiées

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender
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/SchedulerRandomizationTime

Explanation

This policy setting allows you to configure scheduled task scan start time and the scheduled security intelligence update start time window in hours. This setting affects the Randomize scheduled task times configuration.

If you enable this setting, you must pick a randomization window in hours. The possible randomization window interval is between 1 and 23 hours. The randomization interval implemented is between 0 and the configured value.
When you enable this setting, Randomize scheduled task times settings uses the randomization window specified in this configuration setting.
If you disable or do not configure this policy setting, Randomize scheduled task times settings will randomize scheduled task times between 0-4 hours.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de configurer l’heure de début de l’analyse des tâches planifiées et la fenêtre d’heure de début de la mise à jour planifiée de renseignements de sécurité en heures. Ce paramètre affecte la configuration des heures de tâches planifiées aléatoires.

Si vous activez ce paramètre, vous devez choisir une fenêtre de randomisation en heures. L’intervalle de fenêtre de randomisation possible est compris entre 1 et 23 heures. L’intervalle de randomisation implémenté est compris entre 0 et la valeur configurée.
Lorsque vous activez ce paramètre, les paramètres d’heures de tâche planifiée aléatoire utilisent la fenêtre de randomisation spécifiée dans ce paramètre de configuration.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les paramètres d’heures de tâches planifiées aléatoires sont rendues aléatoires entre 0 et 4 heures.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender
Value name
SchedulerRandomizationTime
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/SchedulerRandomizationTime
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
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 'SchedulerRandomizationTime' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)
# Specify scheduler randomization window in hours.
Set-ItemProperty -Path $k -Name 'SchedulerRandomizationTime' -Value 4 -Type DWord  # between 1 and 23

Disable

# Disable: WindowsDefender/SchedulerRandomizationTime
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
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 'SchedulerRandomizationTime' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": WindowsDefender/SchedulerRandomizationTime
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
Remove-ItemProperty -Path $k -Name 'SchedulerRandomizationTime' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Specify scheduler randomization window in hours.Spécifier la fenêtre de randomisation du planificateur en heures.SchedulerRandomizationTimeNumeric boxdecimalSchedulerRandomizationTimeREG_DWORD
Min: 1 · Max: 23 · Default (UI): 4

Availability

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016