Specify the scan type to use for a scheduled scan
Spécifier le type d’analyse à utiliser pour une analyse planifiée
Explanation
This policy setting allows you to specify the scan type to use during a scheduled scan. Scan type options are:
1 = Quick Scan (default)
2 = Full Scan
If you enable this setting, the scan type will be set to the specified value.
If you disable or do not configure this setting, the default scan type will used.
Ce paramètre de stratégie vous permet de spécifier le type d’analyse à utiliser au cours d’une analyse planifiée. Les options de type d’analyse sont les suivantes :
1 = Analyse rapide (valeur par défaut)
2 = Analyse complète
Si vous activez ce paramètre, le type d’analyse est défini selon la valeur spécifiée.
Si vous désactivez ou ne configurez pas ce paramètre, le type d’analyse par défaut est utilisé.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Scan- Value name
ScanParameters
| 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_ScanParameters
$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 'ScanParameters' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
# Specify the scan type to use for a scheduled scan
# Possible options:
# Quick scan = 1
# Full system scan = 2
Set-ItemProperty -Path $k -Name 'ScanParameters' -Value 1 -Type DWordDisable
# Disable: WindowsDefender/Scan_ScanParameters
$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 'ScanParameters' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsDefender/Scan_ScanParameters
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Scan'
Remove-ItemProperty -Path $k -Name 'ScanParameters' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Specify the scan type to use for a scheduled scanSpécifier le type d’analyse à utiliser pour une analyse planifiéeScan_ScanParameters | Drop-down listenum | ScanParameters | REG_DWORD | Required · Default choice (UI): #0
|