Configure scheduled task times randomization window
Fenêtre Configurer la randomisation des heures des tâches planifiées
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.
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
| 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/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 23Disable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Specify scheduler randomization window in hours.Spécifier la fenêtre de randomisation du planificateur en heures.SchedulerRandomizationTime | Numeric boxdecimal | SchedulerRandomizationTime | REG_DWORD | Min: 1 · Max: 23 · Default (UI): 4 |