Microsoft Defender antivirus comes built into Windows 11 to protect your system. This is part of Windows Security suite (earlier known as Windows Defender) working on real-time to fight against malware, viruses, and other threats. Sometimes, you may want to disable the default protection. Perhaps, you’re installing another antivirus or need to run software that Defender flags incorrectly. Here’s how you can disable Defender temporarily or permanently depending upon your need.
Bypassing Defender for an App
If you have Microsoft 365 subscription, you can see in the system tray icon on taskbar that Microsoft Defender and Windows Security apps are running in the background. It’s generally hidden and click on the arrow to find it. Don’t confuse this Microsoft Defender with the Defender Antivirus part of the Windows Security. Clicking on the Microsoft Defender icon will open a window showing your device protection status. In this article, we’re discussing about disabling Microsoft Defender Antivirus engine part of Windows Security and NOT the Microsoft Defender as part of Microsoft 365.

Disabling Microsoft Defender leaves your system vulnerable. So, disable Defender only if you know what you’re doing to avoid the system is infected with virus or malware. Make sure you install another trusted antivirus or have good security practices if you decide to turn it off permanently.
Note: If your objective is to disable Defender firewall or bypass firewall for a single app, then you don’t need to disable the antivirus protection. Learn more on how to manage firewall in Windows PC.
1. Temporarily Disable Defender
Follow the below steps if you just need to turn it off for a short time. Windows Defender will automatically turn itself back on after a while or after starting for security reasons.
- Click on the Start Menu icon and then click “All” button to view all installed programs on your system. Scroll down on the list to bottom to find and click “Windows Security” app. Alternatively, you can also search and open the app or click the icon from taskbar system tray.

- When you’re in the Windows Security app, go to “Virus & threat protection” section.
- Under “Virus & threat protection settings” heading, click “Manage settings” link.

- On the next screen, turn off “Real-time protection” option.

- You’ll be prompted with User Account Control and click “Yes” button to confirm.

- Now, you should see a notification in Windows Security app showing “Real-time protection is off, leaving your device vulnerable”.

Windows will show an instant notification that Microsoft Defender Antivirus is disabled. You will also see a warning message on the system tray icon showing action needed.


You can anytime get back to Windows Security app and turn on real-time protection to start using Microsoft Defender again (if it’s not automatically turned on).

2. Permanently Disable Using Group Policy Editor
You can disable Defender permanently for all users of your computer by modifying a system policy. However, the Local Group Policy Editor app for managing system policies if available only in Windows 11 Pro, Education and Enterprise edition and is not part of Windows Home edition.
- Type “policy editor” in the Windows Search box and click on “Edit group policy” option.
- This will open Local Group Policy Editor app.

- Navigate to “Computer Configuration → Administrative Templates → Windows Components → Microsoft Defender Antivirus” section.
- You can find an item named “Turn off Microsoft Defender Antivirus” on the right pane and double-click on it.

- Select “Enabled” option and then click “Apply” / “OK” buttons.

- Restart the system to apply your changes.
Note: You can also go to “Computer Configuration → Administrative Templates → Windows Components → Microsoft Defender Antivirus” section and enable “Turn off real-time protection” setting.
3. Permanently Disable Using Registry Editor
As mentioned, Windows 11 Home doesn’t have Group Policy Editor and you can use the Registry Editor app instead. You can use this app on other Windows editions as well and it also affects all users on the system. Since, incorrect changes in the registry can break your system, make sure to back up before proceeding.
- Type “registry editor” in the Windows Search box. Find and click on the Registry Editor app from the search results. Press “Yes” in case the User Account Control prompt appears.

- Copy the following location, paste it in the Registry Editor’s address bar and press enter key to navigate to that location.
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
- Right-click on the empty area on right pane and choose “New → DWORD (32-bit) Value” from the context menu.

- This will create a new item and name it as DisableAntiSpyware. Right-click on the item and select “Modify…” option.
- Set its “Value data” to 1 and click on “OK” button.

- Restart the system to save your changes.
If you want to re-enable Defender anytime later, simply delete the DisableAntiSpyware entry or set its value to 0 in the Registry Editor.
Final Words
Disabling Windows Defender leaves your system vulnerable. Make sure you install another trusted antivirus or have good security practices if you decide to turn it off permanently.





