How to Turn Off Windows Security (and Why You Might)
In this article
Turning off Windows Security (also called Microsoft Defender Antivirus) is possible, but you should only do it temporarily and for a specific reason—like installing software that triggers a false positive, or running a tool that needs deeper system access. The built-in protection is solid for most people, and disabling it permanently leaves your PC vulnerable. Here's the exact way to do it, plus the safer alternatives.
What You'll Need
- Administrator access to the Windows PC (you must be signed in with an admin account).
- Windows 10 or Windows 11 (the steps are nearly identical, but menu labels may vary slightly by version).
- If you're turning it off to install a specific app, have that installer ready.
Step-by-Step
- Open Windows Security. Click the Start button, type “Windows Security,” and press Enter. Alternatively, go to Settings > Privacy & Security > Windows Security (Windows 11) or Settings > Update & Security > Windows Security (Windows 10).
- Go to Virus & threat protection. In the left sidebar or main tile, click “Virus & threat protection.”
- Manage settings. Under the “Virus & threat protection settings” section, click “Manage settings.” This opens a page with toggles for various protections.
- Turn off Real-time protection. Find the toggle labeled “Real-time protection” and switch it to Off. Windows will show a UAC (User Account Control) prompt—click “Yes” to confirm. This is the main switch that stops active scanning.
- Turn off other protections (if needed). If you still need more disabled, you can also turn off “Cloud-delivered protection,” “Automatic sample submission,” and “Tamper Protection” (if available). Tamper Protection is meant to prevent malware from disabling your antivirus, so turning it off weakens your security—only do this if absolutely necessary.
- Note that this is temporary. Windows will automatically re-enable Real-time protection after a short time (usually a few minutes) or after a restart. If you need it off longer, you'll have to turn it off again each time.
Important: If you're trying to disable Windows Security because you installed a third-party antivirus, you don't need to do any of this—Windows automatically turns off its own protection when another AV is active. Check if your third-party AV is running properly first.
Common Mistakes
- Turning off Tamper Protection without knowing what it does. Tamper Protection prevents malware from changing your security settings. Disabling it makes your PC much easier to compromise.
- Disabling everything permanently. There's no supported way to permanently disable Windows Security in the UI. Some guides suggest editing the registry or using Group Policy, but that's risky and can leave you unprotected without realizing it.
- Forgetting to re-enable it. If you turned it off for a specific task, set a reminder to turn it back on. Leaving it off for days is a common mistake.
- Assuming Windows Security is the only protection. If you have a third-party antivirus, Windows Security should already be off. If you don't, then turning off Windows Security leaves you with no antivirus at all.
Tips
- Use “Add an exclusion” instead. If you're getting a false positive on a file or folder, go to Virus & threat protection > Manage settings > Exclusions, and add that specific file or folder. This keeps protection on for everything else.
- Turn it off only for the install. If an installer is blocked, turn off Real-time protection just for the few minutes it takes to install, then turn it back on immediately.
- Use the “Temporary” option in Windows Security. In some Windows 11 versions, you can click “Temporarily turn off” next to Real-time protection, which gives you a clear time limit.
- Keep Windows updated. If you're having issues with Windows Security, updating Windows often fixes bugs and false positives.
Troubleshooting
If the toggle won't stay off: Windows is designed to re-enable protection automatically. If you need it off longer, you can try the Group Policy Editor (only on Windows Pro or Enterprise):
- Press Win+R, type
gpedit.msc, and press Enter. - Go to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.
- Enable “Turn off Microsoft Defender Antivirus.” This is a more permanent solution, but it's not recommended for most users.
If Windows Security won't open: Restart your PC first. If it still won't open, run the Windows Update troubleshooter or check for updates. In rare cases, a corrupted system file may require a system restore or reset.
If you see “You don’t have permission to change this setting”: Make sure you're signed in as an administrator. If you are, check if your organization manages the device (work or school account) — those settings are often locked by policy.
If you turned it off and now you can't turn it back on: Try restarting your PC. If that doesn't work, open Windows Security as admin and try again. If Tamper Protection is off, turn it back on first.
Frequently Asked Questions
Is it safe to turn off Windows Security?
No, not for long. It leaves your PC without real-time protection, making it easier for malware to infect your system. Only do it temporarily and for a specific reason.
Will Windows automatically turn it back on?
Yes, Real-time protection will re-enable itself after a short time or after a restart. That's by design to keep you safe.
Can I turn off Windows Security permanently?
There's no official supported way to do it permanently through the UI. You can use Group Policy or registry edits, but that's not recommended and can cause problems. If you have a third-party antivirus, Windows Security will stay off automatically.
Why does Windows Security turn itself back on?
Because it's a security feature. Microsoft wants to ensure that you don't accidentally leave your PC unprotected. It's a safety net.
Do I need to turn off Windows Security if I install another antivirus?
No. Windows Security automatically disables its real-time protection when it detects a third-party antivirus is active. You can verify this in the Windows Security app—it will show a message saying “No actions needed.”
What's the safest way to run a program that Windows Security blocks?
Add an exclusion for that specific file or folder. That way, everything else stays protected. Only do this if you trust the file completely.