en-US windows computer

Scan excluded files and directories during quick scans

Verified with Windows 11 25H2 — updated on July 12, 2026

Windows 11 25H2

Supported on: At least Windows Server 2012, Windows 8 or Windows RT

Path in the GPO console

Computer Configuration\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Scan

Description

This policy setting allows you to scan excluded files and directories during quick scans. If you set this policy setting to 1, all files and directories that are excluded from real-time protection using contextual exclusions are scanned during a quick scan. If you set this policy to 0 or do not configure it, exclusions are not scanned during quick scans.

Registry

HKLM Software\Policies\Microsoft\Windows Defender\Scan

Value name: QuickScanIncludeExclusions

More options available

Options

QuickScanIncludeExclusions enum
  • 0 (default)
  • 1

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Scan excluded files and directories during quick scans
; State: Enabled
; Supported on: At least Windows Server 2012, Windows 8 or Windows RT

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Scan]
"QuickScanIncludeExclusions"=dword:00000001
"QuickScanIncludeExclusions"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Scan excluded files and directories during quick scans
# State: Enabled
# Supported on: At least Windows Server 2012, Windows 8 or Windows RT

$path = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Scan'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'QuickScanIncludeExclusions' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'QuickScanIncludeExclusions' -Value 0 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview