Skip to content
Follow
Windows

How to Enable or Disable Real-time Protection for Microsoft Defender Antivirus in Windows 11

Richard
Written by
Richard
Mar 27, 2026 Updated Jul 10, 2026 4 min read
How to Enable or Disable Real-time Protection for Microsoft Defender Antivirus in Windows 11
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.

⚡ Quick Answer

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.

📝Important
Administrator privileges are required to toggle real-time protection. Furthermore, Controlled Folder Access (a security feature that prevents unauthorized changes to important folders) depends on active real-time protection.
📝Note
Installing another third-party antivirus program causes Microsoft Defender to deactivate itself automatically. Real-time protection stays off even if periodic scanning (a supplementary scanning feature) gets enabled while another antivirus runs.

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.

  1. Open Windows Security.
  2. Click Virus & threat protection.
  3. Click the Manage settings link under Virus & threat protection settings.
  4. Turn Real-time protection On (default) or Off based on what you want.
  5. 🔒 Admin required: If prompted by UAC, click Yes to approve.
  6. 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.

Windows Security Virus and threat protection
Windows Security Virus and threat protection
Windows Security Virus and threat protection manage settings link
Windows Security Virus & Threat Protection Manage Settings link.
turn on or off microsoft defender real time protection
turn on or off microsoft defender real time protection

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:

  1. 🔒 Admin required: Open Windows Terminal as Administrator. Choose either Windows PowerShell or Command Prompt.
  2. Copy and paste one of the commands below and press Enter.
  3. Close Windows Terminal when done.

To Turn On Real-time Protection:

PowerShell
Set-MpPreference -DisableRealtimeMonitoring 0

OR

PowerShell
Set-MpPreference -DisableRealtimeMonitoring $false

To Turn Off Real-time Protection:

PowerShell
Set-MpPreference -DisableRealtimeMonitoring 1

OR

PowerShell
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:

  1. 🔒 Admin required: Open the Local Group Policy Editor by typing gpedit.msc in the search box.
  2. Navigate to this path on the left side:

    Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Real-time Protection
  3. On the right side, double-click the Turn off real-time protection policy.

To Enable Real-time Protection:

  1. Select the dot next to Not Configured.
  2. Click OK.
  3. Close the Local Group Policy Editor.

To Disable Real-time Protection:

  1. Select the dot next to Enabled.
  2. Click OK.
  3. Close the Local Group Policy Editor.
Group Policy Editor turn off real-time protection option
Group Policy Editor turn off real-time protection option
Group Policy real-time protection disable options and settings
Group Policy real-time protection disable options and settings

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:

  1. 🔒 Admin required: Open the Terminal app.
  2. Copy and paste the command below and press Enter.

To Enable Real-time Protection:

🗝️Registry
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /f

To Disable Real-time Protection:

🗝️Registry
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?

Tags: #Windows 11
Was this helpful?
Richard

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.

📚 Related Tutorials

How to Disable Command Prompt in Windows 11
Windows How to Disable Command Prompt in Windows 11
Enable or Disable Microsoft Defender PUA Protection in Windows 11
Windows Enable or Disable Microsoft Defender PUA Protection in Windows 11
How to Open Windows Terminal as Admin Automatically
Windows How to Open Windows Terminal as Admin Automatically
How to Activate Microsoft Defender Antivirus in Windows 11
Windows How to Activate Microsoft Defender Antivirus in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *