Open in the explorer

Configure performance mode status

Configurer l’état du mode performance

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus › Real-time Protection FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender › Protection en temps réel
Supported on
SUPPORTED_Windows_11_0_22H1
ADMX file
WindowsDefender.admx
Internal name
WindowsDefender/RealtimeProtection_PerformanceModeStatus

Explanation

This policy controls Microsoft Defender Antivirus performance mode for Dev Drives.

A Dev Drive is a disk drive optimized for higher performance in software development scenarios. When this policy is Enabled or not configured, Performance mode is turned on for Microsoft Defender Antivirus. In Performance mode, Microsoft Defender Antivirus security checks of content stored on Dev Drives are conducted asynchronously to enhance performance. Performance mode requires the following policies also be enabled: “Enable dev drive”, and “Dev drive filter attach policy”.

If you either Enable or do not configure this policy setting, Performance mode is turned on.

If you Disable this policy setting, Performance mode is turned off and Microsoft Defender Antivirus will protect a Dev Drive in the same way as other drives.

French text from Windows 11 26H2

Cette stratégie contrôle le mode de performance de Microsoft Defender Antivirus pour les lecteurs Dev.

Un Dev Drive est un lecteur de disque optimisé pour des performances accrues dans des scénarios de développement de logiciels. Lorsque cette stratégie est activée ou n'est pas configurée, le mode Performance est activé pour Microsoft Defender Antivirus. En mode Performance, les contrôles de sécurité de Microsoft Defender Antivirus sur le contenu stocké sur les disques durs sont effectués de manière asynchrone pour améliorer les performances. Le mode performance exige que les stratégies suivantes soient également activées : « Activer le lecteur de périphériques » et « Stratégie d'attachement du filtre du lecteur de périphériques »

Si vous activez ou ne configurez pas ce paramètre de stratégie, le mode Performance est activé.

Si vous désactivez ce paramètre de stratégie, le mode Performance est désactivé et Microsoft Defender Antivirus protégera un lecteur Dev de la même manière que les autres lecteurs.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Real-Time Protection
Value name
DisableAsyncScanOnOpen
StateValue written
EnabledREG_DWORD = 0
DisabledREG_DWORD = 1

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

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/RealtimeProtection_PerformanceModeStatus
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableAsyncScanOnOpen' -Value 0 -Type DWord

Disable

# Disable: WindowsDefender/RealtimeProtection_PerformanceModeStatus
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableAsyncScanOnOpen' -Value 1 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WindowsDefender/RealtimeProtection_PerformanceModeStatus
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection'
Remove-ItemProperty -Path $k -Name 'DisableAsyncScanOnOpen' -ErrorAction SilentlyContinue

Availability

Windows 11

✓ 26H2✓ 25H2✓ 24H2— 23H2— 22H2— 21H2

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016