How to Enable or Disable Real-time Protection for Microsoft Defender Antivirus in Windows 11
Turning real-time protection on or off for Microsoft Defender Antivirus in Windows 10 and Windows 11 takes a couple of steps.
Open Windows Security, navigate to Virus & threat protection, and click Manage settings. Toggle Real-time protection to On or Off. If it turns back on automatically, you may need to disable Tamper Protection first.
What is Microsoft Defender Antivirus?
Microsoft Defender Antivirus serves as the built-in security software for Windows 10 and Windows 11. Computers rely on this utility to block viruses, malware, and other threats.
What is Real-time Protection?
Microsoft Defender’s real-time protection acts like a security guard for the PC, constantly watching for viruses and malware. This feature inspects files during opening or downloading , halting threats before they cause damage. Disabling real-time protection leaves the computer vulnerable to online dangers.
Disabling real-time protection stops Windows 11 from checking downloaded or opened files for threats. This action introduces security risks for most users and remains unrecommended.
Option 1Use Windows Security
The built-in Windows Security app provides a graphical way to toggle Microsoft Defender's real-time protection. This utility permits swift adjustments through a few mouse clicks. The following procedure guides the management of antivirus protection.
- Open Windows Security.
- Click Virus & threat protection.
- Click the Manage settings link under Virus & threat protection settings.
- Turn Real-time protection On (default) or Off based on what you want.
- 🔒 Admin required: If prompted by UAC, click Yes to approve.
- Close Windows Security when done.
Deactivating real-time protection for Microsoft Defender Antivirus in Windows 11 causes the feature to re-enable itself automatically after a brief period. Maintaining a disabled state requires disabling Tamper Protection (a security setting that prevents unauthorized apps from changing security settings) beforehand.



Option 2Use Command Line
Command-line interfaces allow users to enable or disable Microsoft Defender's real-time protection through Windows Terminal. Tamper Protection must be turned off prior to executing this method. Launching Windows Terminal with administrative rights allows specific commands to govern this setting.
Steps:
- 🔒 Admin required: Open Windows Terminal as Administrator. Choose either Windows PowerShell or Command Prompt.
- Copy and paste one of the commands below and press Enter.
- Close Windows Terminal when done.
To Turn On Real-time Protection:
Set-MpPreference -DisableRealtimeMonitoring 0
OR
Set-MpPreference -DisableRealtimeMonitoring $false
To Turn Off Real-time Protection:
Set-MpPreference -DisableRealtimeMonitoring 1
OR
Set-MpPreference -DisableRealtimeMonitoring $true
Option 3Use Local Group Policy Editor
Windows 11 Pro, Enterprise, or Education editions include the Local Group Policy Editor (a Microsoft Management Console snap-in for configuring system policies), offering another avenue for managing Microsoft Defender's real-time protection. Tamper Protection must be disabled before applying this method. This tool governs security configurations via specific policy paths.
Steps:
- 🔒 Admin required: Open the Local Group Policy Editor by typing
gpedit.mscin the search box. - Navigate to this path on the left side:
Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Real-time Protection - On the right side, double-click the Turn off real-time protection policy.
To Enable Real-time Protection:
- Select the dot next to Not Configured.
- Click OK.
- Close the Local Group Policy Editor.
To Disable Real-time Protection:
- Select the dot next to Enabled.
- Click OK.
- Close the Local Group Policy Editor.


Option 4Edit the Registry
Modifying the Windows Registry (a hierarchical database storing low-level operating system and application settings) serves as an advanced method for altering Microsoft Defender's real-time protection settings. Disabling Tamper Protection remains a mandatory prerequisite. Direct manipulation of system settings requires careful execution.
Steps:
- 🔒 Admin required: Open the Terminal app.
- Copy and paste the command below and press Enter.
To Enable Real-time Protection:
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /f
To Disable Real-time Protection:
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f
Summary
Real-time protection functions as a vital security feature of Microsoft Defender that continuously scans for threats to keep PCs safe, and Windows Security, Command Line, Group Policy, or the Registry provide management capabilities for this feature.
Is Windows Real-Time Defender free?
Windows 11 installations include Microsoft Defender without requiring any purchase or subscription fees. Malware, viruses, and security threats face automatic real-time protection as long as no competing antivirus software is present on the machine.
How do I know if Windows Defender real-time protection is enabled?
Verifying whether Windows Defender's real-time protection is enabled involves these actions: 1. Access 'Update and Security'. 2. Select 'Windows Security'. 3. Locate 'Virus & threat protection'. Manual activation is available there if the feature is turned off.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!