Open in the explorer

Specify the scan type to use for a scheduled scan

Spécifier le type d’analyse à utiliser pour une analyse planifiée

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_ScanParameters

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.

French text from Windows 11 26H2

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
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_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 DWord

Disable

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Specify the scan type to use for a scheduled scanSpécifier le type d’analyse à utiliser pour une analyse planifiéeScan_ScanParametersDrop-down listenumScanParametersREG_DWORD
Required · Default choice (UI): #0
LabelValue
Quick scanREG_DWORD = 1
Full system scanREG_DWORD = 2

Availability