Why you might want to disable Windows Defender temporarily
Windows Defender is the built-in antivirus program on Windows 10 and Windows 11. Most of the time, you should leave it running — it catches real threats without slowing your computer much. But there are legitimate reasons to turn it off for a short time: installing software that Defender incorrectly flags as dangerous, running older programs that conflict with real-time scanning, or testing your own security tools.
The key word is temporary. Disabling Defender leaves your computer unprotected against actual malware. If you turn it off, do the specific task you need to do, then turn it back on immediately. Do not leave it off for days or weeks.
If you find yourself disabling Defender often because it keeps blocking software you use regularly, that is a sign you should investigate whether that software is actually safe — not just assume Defender is wrong and leave protection off.
Key Takeaways
- Windows Defender can be paused for one, two, or four hours through the Windows Security app, which is the safest temporary method.
- Turning off real-time protection through Settings will disable scanning until you manually turn it back on, leaving your computer unprotected.
- If you need to disable Defender permanently or cannot access the normal controls, you likely have a malware infection and should scan with a separate tool first.
- Some programs and Windows updates will automatically re-enable Defender even if you turn it off, which is intentional protection by design.
- Disabling Defender does not remove it — it stays installed and can be turned back on at any time through the same menus.
Pausing Defender for a few hours (the safest method)
The quickest and safest way to disable Defender temporarily is to pause it. Open the Windows Security app by clicking the Windows Start button, typing "Windows Security," and pressing Enter. Click "Virus & threat protection" on the left side.
Under "Virus & threat protection settings," click "Manage settings." You will see a toggle for "Real-time protection." Click it once to turn it off. A menu will appear asking how long you want to pause protection: one hour, two hours, or four hours. Choose the time you need. When that time runs out, Defender automatically turns back on without you having to do anything.
This method is better than permanently disabling Defender because you cannot accidentally forget to turn it back on. Use this whenever you need to install a single program or run a specific task.
Turning off real-time protection through Settings
If you want to disable Defender without a time limit, you can turn off real-time protection manually. Open Settings by pressing the Windows key and typing "Settings," then press Enter. Go to "Privacy & security" on the left side, then click "Windows Security."
Click "Virus & threat protection," then click "Manage settings" under "Virus & threat protection settings." Toggle off "Real-time protection." Unlike the pause method, this will stay off until you manually toggle it back on.
After you finish whatever task required Defender to be off, come back to this same menu and toggle real-time protection back on. Do this the same day if possible. Leaving Defender off overnight or longer significantly increases your risk of infection.
When Defender will not turn off (and what that means)
Sometimes you will try to disable Defender and find that the toggle is grayed out or will not stay off. This usually happens because your computer is managed by an organization (your workplace or school), and the administrator has locked Defender settings. You cannot override this — it is intentional.
If you own the computer and Defender still will not turn off, this can be a sign of malware that is preventing you from disabling security software. Malware often does this to avoid being detected. Before trying other methods, run a scan with a separate tool like Malwarebytes (the free version) or Windows Defender Offline to check for infections first.
Windows updates can also temporarily re-enable Defender even after you turn it off. This is by design — Microsoft wants to ensure your computer stays protected. If this keeps happening, it is not a bug; it is protection working as intended.
Disabling Defender through Group Policy (Windows Pro and higher only)
If you have Windows 10 or 11 Pro, Enterprise, or Education edition, you can disable Defender more completely through Group Policy. Home edition does not have this option. Press the Windows key and type "gpedit.msc," then press Enter. This opens the Group Policy Editor.
Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus. Find the setting called "Turn off Microsoft Defender Antivirus" and double-click it. Select "Enabled" and click OK. This will disable Defender until you come back and set it to "Disabled" or "Not Configured."
This method is more permanent than the Settings toggle, but it is also more likely to cause problems if you forget to turn Defender back on. Use the Settings method instead unless you have a specific reason to use Group Policy.
What happens to your computer when Defender is off
When Windows Defender is disabled, your computer has no built-in antivirus protection. Malware can install itself without any warning. You will not see alerts, and you will not know you have been infected until the malware starts causing obvious problems — and by then it may be too late to remove cleanly.
This is why the pause method (one to four hours) is much safer than leaving Defender off indefinitely. If you must leave it off for longer, make sure you are not browsing the internet, downloading files, or opening email attachments while it is disabled. Do only the specific task you need to do, then turn it back on.
If you have other security software installed (like Norton, McAfee, or Bitdefender), having that running while Defender is off provides some protection, though two antivirus programs running at the same time can cause conflicts. Most people should just use Defender and leave it on.
Turning Defender back on
To re-enable Defender, follow the same steps you used to turn it off. Open Windows Security, go to "Virus & threat protection," click "Manage settings," and toggle "Real-time protection" back on. If you used the pause method, Defender will turn back on automatically when the timer runs out.
If you disabled Defender through Group Policy, open Group Policy Editor again, navigate to the same setting, and change it back to "Disabled" or "Not Configured." If you used Settings, just toggle the switch back on.
After you turn Defender back on, it will scan your computer for threats. This scan may take a few minutes. Let it finish — do not interrupt it or restart your computer while it is running.
Frequently Asked Questions
Can I uninstall Windows Defender completely?
No. Windows Defender is part of Windows itself and cannot be uninstalled. You can disable it, but it will remain on your computer. If you want different antivirus software, you can install a third-party program like Bitdefender or Norton, and Windows will automatically disable Defender when you do.
Will disabling Defender make my computer faster?
Possibly, but usually not noticeably. Defender uses very little CPU and memory on modern computers. If your computer feels slow, the problem is almost never Defender. Disabling it will not solve slowness, and you will lose protection for no real benefit.
What if I disable Defender and then forget to turn it back on?
Your computer will be unprotected until you turn it back on. If you are worried about forgetting, use the pause method instead — it automatically re-enables after one, two, or four hours. You can also set a phone reminder to turn Defender back on after you finish your task.
Is it safe to disable Defender while installing software?
It depends on where the software comes from. If you are installing something from a trusted source (the official website, Microsoft Store, or a known publisher), it is usually safe to pause Defender for a few minutes. If you are installing something from an unknown source, disabling Defender is risky — the software itself might be malware.
Can I disable Defender on just one user account?
No. Defender protects the entire computer, not individual accounts. Disabling it affects all users on that computer. If multiple people use your computer, turning off Defender puts everyone at risk.