How to Fully Disable Microsoft Defender in Windows 11 (2025 Guide) – Step-by-Step & Safe Methods

If you are using Windows 11, you’ve probably noticed that Microsoft Defender — the built-in security suite — is enabled by default and constantly watching the system. While it’s generally helpful, there are times when users may need to turn it off temporarily or shut it down completely. For example, some third-party antivirus programs require exclusive access, certain development tools get flagged incorrectly, or advanced users may be performing environment tests where real-time protection interferes. This guide provides a detailed, easy-to-follow explanation of multiple methods to disable Microsoft Defender safely, along with tips to avoid unexpected system risks.

Table of Contents

1. Why Windows Defender Cannot Be Turned Off Easily in Windows 11
2. Method 1: How to Temporarily Disable Microsoft Defender
3. Method 2: Permanently Disable Defender Using Group Policy
4. Method 3: Turn Off Defender Using Registry Editor (All Windows Editions)
5. Method 4: Disable Real-Time Protection via PowerShell
6. Important Security Considerations Before Turning Off Defender
7. How to Re-Enable Defender If Needed
8. FAQ (With Schema Markup)

Why Windows Defender Is Difficult to Disable in Windows 11

Compared with older versions of Windows, Microsoft has made Defender far more integrated within Windows 11. The OS treats Defender as a core system component, meaning it automatically restarts if it notices any critical features being disabled. This is why many users find that even after turning off real-time protection, Windows will eventually switch it back on during the next reboot. To truly disable Defender, you must use deeper-level system settings such as Group Policy, Registry modifications, or PowerShell commands — all of which we will cover in this guide.

Method 1: Temporarily Disable Microsoft Defender (Quick Option)

This is the simplest method and works well for users who only need to turn off protection for a short time — for example, while installing software that Defender mistakenly blocks. Keep in mind: **Windows 11 will automatically re-enable Defender after a restart**, so this is not a permanent solution.

Step 1 — Open Windows Security
Go to Start → Settings → Privacy & Security → Windows Security, then select “Open Windows Security.”

Step 2 — Navigate to Virus & Threat Protection
Select “Virus & threat protection,” then click “Manage settings” under “Virus & threat protection settings.”

Step 3 — Turn Off Real-Time Protection
Switch off “Real-time protection” and “Cloud-delivered protection.” If Windows asks for confirmation, click “Yes.”

Method 2: Permanently Disable Microsoft Defender Using Group Policy

This method is ideal for users running Windows 11 Pro, Enterprise, or Education editions. The Group Policy Editor allows deeper control over system components and provides a reliable way to stop Microsoft Defender from running in the background.

Step 1 — Open Group Policy Editor
Press Win + R to open the Run dialog box. Type gpedit.msc and press Enter.

Step 2 — Navigate to Defender Policies
Follow this path:
Computer Configuration → Administrative Templates → Windows Components → Microsoft Defender Antivirus

Step 3 — Enable the “Turn Off Microsoft Defender Antivirus” Policy
Find the policy named “Turn off Microsoft Defender Antivirus.”
Double-click it, select Enabled, then confirm with OK.

Step 4 — Restart Your System
Restart the computer to apply the configuration changes. After rebooting, Defender’s real-time engine will no longer load automatically.

Method 3: Disable Microsoft Defender Using Registry Editor

If your Windows edition does not include Group Policy (such as Windows 11 Home), Registry Editor is the best alternative. This method works across all versions of Windows 11 and gives you complete control over Defender’s core behavior. As always, be cautious when editing registry entries.

Step 1 — Open the Registry Editor
Press Win + R, type regedit, and press Enter. Approve the administrator prompt if required.

Step 2 — Navigate to the Defender Registry Path
Go to the following directory:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

Step 3 — Create a New DWORD Entry
Right-click on the right panel → New → DWORD (32-bit) Value.
Name it: DisableAntiSpyware
Double-click the entry and set the Value Data to 1.

Step 4 — Restart Windows
After rebooting, Microsoft Defender will be disabled entirely, although certain background security modules may still function unless also adjusted through related policies.

Method 4: Turn Off Defender Using PowerShell

For experienced users, PowerShell offers a fast and precise way to control Defender. When executed with administrator privileges, the following commands can stop real-time protection immediately.

Step 1 — Run PowerShell as Administrator
Open Start, search for PowerShell, right-click it, and choose Run as administrator.

Step 2 — Enter the Command to Disable Real-Time Monitoring
Execute the following command:

Set-MpPreference -DisableRealtimeMonitoring $true

Step 3 — Verify Defender’s Status
Use this command to check the current protection state:

Get-MpPreference