Summary

Windows built-in security app, Microsoft Defender, protects your computer from malicious agents and viruses. However, there may be situations when you want to disable it, such as when testing a third-party security app. We’ll show you how to permanently disable Microsoft Defender on Windows 11.

When Should You Permanently Disable Microsoft Defender Antivirus

Microsoft Defender Antivirus provides various protection features, including real-time protection, cloud-delivered protection, network protection, and more. When you disable Microsoft Defender, you lose access to all these protections, leaving your computer at risk.

Generally, you should avoid disabling Microsoft Defender Antivirus. However, if the need arises—for example, when you need to install an application that Defender is blocking—you cantemporarily turn it off. To do so,turn off Real-time protectionin the Windows Security app, install the application, and then re-enable Real-time protection.

Real-time Protection toggle disabled in the Windows Security app.

Additionally, if you intend to permanently disable Defender Antivirus to install a third-party security application, you must reconsider your choice. This is because when you install a compatiblenon-Microsoft antivirus program, Microsoft Defender antivirus will automatically disable itself. Compatible non-Microsoft antivirus programs are those that do not cause any issues when installed alongside Windows Defender.

Luckily, there are numerousantivirus programsthat are compatible with Microsoft. To verify compatibility, you should check the antivirus program’s user manual or inquire with the seller.

Typing Windows Security in the Start Menu search bar.

However, if you wish to install a security program that is not compatible with Microsoft, you will need to disable Microsoft Defender Antivirus permanently.

Now that you know when you should and should not permanently disable Microsoft Defender, let’s check out how you can permanently disable Microsoft Defender on Windows 11.

Virus & Threat Protection option in the Windows Security App.

Turn Off Real-Time Protection and Tamper Protection in the Windows Security App

Unlike temporarily disabling Microsoft Defender Antivirus, permanently disabling it isn’t straightforward. First, you’ll need to disable Real-time and Tamper Protection in the Windows Security app.

Disabling Real-time protection ensures that Microsoft Defender won’t scan any files on your computer. And disablingTamper Protectionallows you to make changes to the Microsoft Defender antivirus settings on your computer, which otherwise wouldn’t be possible. To turn off these settings, open the Start menu, typeWindows Securityin the search bar, and hit Enter.

Real-time Protection toggle in the Windows Security app.

Choose “Virus & Threat Protection” from the left sidebar, then click “Manage Settings” on the right.

Turn off the “Real-Time Protection” toggle. If UAC pops up, click “Yes” to confirm your decision.

Tamper Protection toggle in the Windows Security app.

Next, disable the “Tamper Protection” toggle. Click “Yes” when the UAC prompt appears.

Once you’ve adjusted these settings in the Windows Security app, you’re all set to disable Microsoft Defender Antivirus on Windows 11 permanently.

Windows Defender Key in the Registry Editor.

Disable Microsoft Defender Using the Registry Editor

If you have Windows 11 Home installed on your computer, you can use the Registry Editor to disable Microsoft Defender permanently.

Editing the registry is risky, as one wrong move can make your system unstable. As a precautionary measure, be sure toback up the registryandcreate a restore point. This way, you canrestore your computerto a working state in case something goes wrong.

Value Data field in the Registry Editor.

Open the Start menu, typeRegistry Editorin the search bar, and hit Enter. Then, in the Registry Editor, navigate to the following path:

Right-click the “Windows Defender” key in the left sidebar, hover over “New,” and choose “DWORD (32-bit) Value”.

Enabling Windows Defender through Registry Editor.

Name the value “DisableAntiSpyware.” Then, double-click the “DisableAntiSpyware” value, type1in the “Value Data” field, and click “OK.”

After that,restart your computerfor the changes to take effect. Upon restart, you’ll see that Microsoft Defender has been permanently disabled on your computer.

Gpedit.msc command in the Run tool.

To reenable Microsoft Defender Antivirus, type0in the “Value Data” field of the “DisableAntiSpyware” value and click “OK.” Afterward, you’ll need to enable “Real-time Protection” and “Tamper Protection” in the Windows Security app, too.

Disable Microsoft Defender Using the Local Group Policy Editor

If you are a Windows 11 Pro user, you have an additional option to permanently disable Microsoft Defender. While you’re able to use the Registry Editor for this process, as a Pro user, you also have the option to use Local Group Policy Editor.

Press Win+R to open the Run tool. Then, typegpedit.mscin the search field and click “OK.”

Turn Off Microsoft Defender Antivirus policy in the Local Group Policy Editor.

In the Local Group Policy Editor window, navigate to the following location:

Double-click the “Turn Off Microsoft Defender Antivirus” policy.

In the Edit window, choose “Enabled.” Then, click “Apply” and “OK” to save the changes.

That’s it! Restart your computer, and you’ll see that Microsoft Defender is disabled.

If you want to enable Microsoft Defender in the future, set the “Turn Off Microsoft Defender Antivirus” policy to “Disable.” After that, turn on the “Real-time Protection” and “Tamper Protection” toggles in the Windows Security app."

How to Check the State of Microsoft Defender on Windows 11

Once you’ve disabled Microsoft Defender using the above method, you must check its state to confirm if it has actually been disabled. To do this, open the Start menu, typePowerShellin the search bar, and press Enter. Then, in the PowerShell window, type the following command and hit Enter:

If you get “Not Running” as the result, then it confirms that you have disabled Microsoft Defender.

However, if you get “Normal” as the result, it means Microsoft Defender is still running on your computer. In this case, double-check that you followed the steps correctly.

Microsoft opted for the longer process to permanently disable Microsoft Defender instead of providing a one-click button to ensure computer safety. Even though it might be tempting, you really should disable it unless you absolutely need to.