Specify the day of the week to run a scheduled full scan to complete remediation
Spécifier le jour de la semaine pour exécuter une analyse complète planifiée afin de terminer la mise à jour
Explanation
This policy setting allows you to specify the day of the week on which to perform a scheduled full scan in order to complete remediation. The scan can also be configured to run every day or to never run at all.
This setting can be configured with the following ordinal number values:
(0x0) Every Day
(0x1) Sunday
(0x2) Monday
(0x3) Tuesday
(0x4) Wednesday
(0x5) Thursday
(0x6) Friday
(0x7) Saturday
(0x8) Never (default)
If you enable this setting, a scheduled full scan to complete remediation will run at the frequency specified.
If you disable or do not configure this setting, a scheduled full scan to complete remediation will run at a default frequency.
Ce paramètre de stratégie vous permet de spécifier le jour de la semaine pour exécuter une analyse complète planifiée afin de terminer la mise à jour. L’analyse peut également être configurée pour être exécutée tous les jours ou jamais.
Ce paramètre peut être configuré avec les valeurs de nombre ordinal suivantes :
(0x0) Tous les jours
(0x1) Dimanche
(0x2) Lundi
(0x3) Mardi
(0x4) Mercredi
(0x5) Jeudi
(0x6) Vendredi
(0x7) Samedi
(0x8) Jamais (valeur par défaut)
Si vous activez ce paramètre, une analyse complète planifiée pour terminer la mise à jour est exécutée à la fréquence spécifiée.
Si vous désactivez ou ne configurez pas ce paramètre, une analyse complète planifiée pour terminer la mise à jour est exécutée à une fréquence par défaut.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Remediation- Value name
Scan_ScheduleDay
| 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/Remediation_Scan_ScheduleDay
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Remediation'
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 'Scan_ScheduleDay' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
# Specify the day of the week to run a scheduled full scan to complete remediation
# Possible options:
# Never = 8
# Every Day = 0
# Sunday = 1
# Monday = 2
# Tuesday = 3
# Wednesday = 4
# Thursday = 5
# Friday = 6
# Saturday = 7
Set-ItemProperty -Path $k -Name 'Scan_ScheduleDay' -Value 8 -Type DWordDisable
# Disable: WindowsDefender/Remediation_Scan_ScheduleDay
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Remediation'
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 'Scan_ScheduleDay' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsDefender/Remediation_Scan_ScheduleDay
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Remediation'
Remove-ItemProperty -Path $k -Name 'Scan_ScheduleDay' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Specify the day of the week to run a scheduled full scan to complete remediationSpécifier le jour de la semaine pour exécuter une analyse complète planifiée afin de terminer la mise à jourRemediation_Scan_ScheduleDay | Drop-down listenum | Scan_ScheduleDay | REG_DWORD | Required · Default choice (UI): #0
|