Follow
Windows

How to Enable or Disable Microsoft Defender Antivirus in Windows 11

Richard
Written by
Richard
Jan 27, 2022 Updated Apr 29, 2026 3 min read
How to Enable or Disable Microsoft Defender Antivirus in Windows 11

Microsoft Defender is the built-in security tool for Windows 11. It provides real-time protection against viruses, ransomware, and other digital threats. This guide explains how to manage your security settings effectively.

Why Manage Microsoft Defender?

You might need to disable your antivirus to install specific software or run diagnostic tools that the scanner blocks. However, doing this leaves your system vulnerable.

What Happens When You Disable Defender?

When you turn off Microsoft Defender, your computer stops scanning for threats. You are at a much higher risk of catching malware. Your system performance may feel faster, but your data is no longer protected.

Pro-Tip: Never leave your antivirus disabled for long. Only turn it off for the specific task you need to complete, then turn it back on immediately.

Is Microsoft Defender Enough?

Microsoft Defender is free and highly effective for most users. It is integrated into the Windows Security app, which also manages Windows Hello, Smart App Control, and Ransomware Protection. Unlike many third-party suites, it has a very low impact on system resources.

How to Change Microsoft Defender Settings

Note: You must have administrator privileges to follow these steps.

Open the Start menu and search for Edit group policy. Click it to open the Local Group Policy Editor.

windows 11 edit group policy

In the list on the left, click through this path: Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.

Steps to turn off Microsoft Defender Antivirus in Windows 11

On the right side, find the setting named Turn off Microsoft Defender Antivirus and double-click it.

Guide to enable or disable Microsoft Defender Antivirus

To turn the antivirus off, select Enabled. To turn it back on later, select Not configured.

Click OK and close the window.

Microsoft Defender Antivirus settings not configured in Windows 11

Change Settings Using the Command Prompt (Admin Required)

Open the Windows Terminal app as an administrator and run the commands below:

To enable Defender:reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /f

To disable Defender:reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f

Summary

Microsoft Defender is your computer’s main line of defense. You can turn it on or off using the Local Group Policy Editor or the command line, but you must have administrator rights to do so. Turning it off is not recommended because it stops all automatic protection. If you must disable it for a specific task, turn it back on as soon as you are finished to keep your system safe. Learn more about Tamper Protection or how to use the Local Group Policy Editor.

Is Microsoft Defender free for Windows 11?

Yes, Microsoft Defender is completely free and comes pre-installed with Windows 11. It provides comprehensive, real-time protection against malware and viruses without requiring a subscription. It is designed to work seamlessly with other security features like Microsoft Pluton and Passkeys to keep your digital identity safe.

Does Windows 11 need third-party antivirus software?

For most everyday users, third-party software is not necessary. Microsoft Defender is highly optimized for Windows 11 and provides excellent security. Unless you have specific enterprise needs or require specialized parental controls, the built-in security tools are sufficient to protect your system from modern cybersecurity threats.

Was this guide helpful?

Tags: #Windows 11
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.

2474 articles → Twitter

📚 Related Tutorials

How to Enable Tamper Protection in Windows 11
Windows How to Enable Tamper Protection in Windows 11
How to Turn On or Off Cloud Protection for Microsoft Defender Antivirus in Windows 11
Windows How to Turn On or Off Cloud Protection for Microsoft Defender Antivirus in Windows 11
How to Reset Local Group Policy in Windows 11
Windows How to Reset Local Group Policy in Windows 11
How to Check Your Microsoft Defender Antivirus Signature Version in Windows 11
Windows How to Check Your Microsoft Defender Antivirus Signature Version in Windows 11

Leave a Reply

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