Open in the explorer

Turn off real-time protection

Désactiver la protection en temps réel

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
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
WindowsDefender.admx
Internal name
WindowsDefender/DisableRealtimeMonitoring

Explanation

This policy turns off real-time protection in Microsoft Defender Antivirus.

Real-time protection consists of always-on scanning with file and process behavior monitoring and heuristics. When real-time protection is on, Microsoft Defender Antivirus detects malware and potentially unwanted software that attempts to install itself or run on your device, and prompts you to take action on malware detections.

If you enable this policy setting, real-time protection is turned off.

If you either disable or do not configure this policy setting, real-time protection is turned on.

French text from Windows 11 26H2

Cette stratégie désactive la protection en temps réel dans l’Antivirus Microsoft Defender.

La protection en temps réel consiste en une analyse toujours active avec l’analyse et l’heuristique du comportement des fichiers et des processus. Lorsque la protection en temps réel est activée, l’Antivirus Microsoft Defender détecte les programmes malveillants et les logiciels potentiellement indésirables qui tentent de s’installer ou de s’exécuter sur votre appareil, et vous invite à prendre des mesures en cas de détection de programmes malveillants.

Si vous activez ce paramètre de stratégie, la protection en temps réel est désactivée.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, la protection en temps réel est activée.

Use cases

Turns off Microsoft Defender Antivirus real-time protection: always-on scanning of files and processes, behaviour monitoring and heuristics. Enabling the policy therefore removes detection at the moment malware tries to install or run, so reserve it for one-off diagnostics or for machines covered by another product.

On devices where Tamper Protection is on, the change is not applied: the setting may look accepted by the GPO without any real effect. Also note that other features, such as block at first sight or network protection, depend on real-time protection staying on.

Microsoft sources: Policy CSP - ADMX_MicrosoftDefenderAntivirus · Tamper protection overview

Registry

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

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/DisableRealtimeMonitoring
$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 'DisableRealtimeMonitoring' -Value 1 -Type DWord

Disable

# Disable: WindowsDefender/DisableRealtimeMonitoring
$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 'DisableRealtimeMonitoring' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability