Why you might want to disable Windows Defender
Windows Defender runs automatically on most Windows computers and scans files in the background. For most people, leaving it on is the right choice — it catches threats without slowing your machine noticeably. But there are real reasons you might want to turn it off: you are installing another antivirus program and the two conflict, you are running resource-heavy work like video rendering and need every bit of processing power, or you are testing software in an isolated environment and the constant scanning interferes with your work.
Disabling Windows Defender is straightforward, but the method depends on which version of Windows you have and whether you want to turn it off temporarily or permanently. This guide covers the most common paths.
Key Takeaways
- The fastest way to disable Windows Defender temporarily is through Settings > Update & Security > Windows Security, where you can turn off real-time protection for one to four hours.
- To disable it permanently, you need to access the Group Policy Editor (Windows Pro and Enterprise only) or the Registry Editor, which requires more steps but gives you full control.
- If you disable Windows Defender, you should install another antivirus program or accept that your computer has no active protection.
- Windows will re-enable Windows Defender automatically if you do not have another antivirus program running, usually within a few days.
Turning off Windows Defender for a few hours
If you need to disable Windows Defender briefly — to install software that triggers false alarms, or to free up processing power for a specific task — the quickest method is through the Settings app. Open Settings, go to Update & Security, then select Windows Security from the left menu. Click Virus & threat protection, then click Manage settings under "Virus & threat protection settings."
Toggle off Real-time protection. Windows will ask you to confirm. Click Yes. Real-time protection will stay off for a set amount of time — usually one to four hours depending on your Windows version — then turn back on automatically. This is the safest temporary method because you do not have to remember to re-enable it.
Disabling Windows Defender permanently on Windows Pro or Enterprise
If you have Windows Pro, Enterprise, or Education edition, you can use the Group Policy Editor to disable Windows Defender completely. Home edition does not have this tool, so skip to the Registry method below.
Press the Windows key and type gpedit.msc, then press Enter. The Group Policy Editor opens. Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus. Look for the policy called Turn off Microsoft Defender Antivirus and double-click it. Select Enabled, then click explore and OK. Close the Group Policy Editor and restart your computer.
After the restart, Windows Defender will be off. If you change your mind later, return to the same location in Group Policy Editor, set the policy back to Not Configured, and restart again.
Disabling Windows Defender on Windows Home using the Registry
Windows Home edition does not include Group Policy Editor, so you must edit the Registry directly. This method works on any Windows version but requires more caution — the Registry controls core system settings, and mistakes can cause problems. If you are not comfortable editing the Registry, the temporary disable method above is safer.
Press the Windows key and type regedit, then press Enter. Click Yes when Windows asks for permission. In the Registry Editor, navigate to HKEY_LOCAL_MACHINE > SOFTWARE > Policies > Microsoft > Windows Defender. If the Windows Defender folder does not exist, right-click on Windows, select New > Key, and name it Windows Defender.
Right-click in the empty space on the right side of the Registry Editor, select New > DWORD (32-bit) Value, and name it DisableAntiSpyware. Double-click the new entry and change the value from 0 to 1, then click OK. Close the Registry Editor and restart your computer. Windows Defender will be disabled after the restart.
To re-enable it, return to the same Registry location, double-click DisableAntiSpyware, change the value back to 0, and restart.
What happens after you disable Windows Defender
Once Windows Defender is off, your computer has no active antivirus protection unless you install another program. Windows will eventually notice this and show a notification in the system tray warning you that your device is not protected. If you leave it disabled without installing replacement protection, Windows will re-enable Windows Defender automatically after a few days — this is a safety feature to prevent accidental exposure.
If you disabled Windows Defender to install a different antivirus program, install that program before or when ready after disabling Windows Defender. Most third-party antivirus programs detect Windows Defender and disable it automatically during their own installation, so you may not need to manually turn it off at all.
Disabling Windows Defender in Safe Mode
If Windows Defender is preventing you from installing or running something, and the temporary disable did not work, you can try disabling it in Safe Mode. Safe Mode loads Windows with only essential drivers and services, which sometimes allows you to work around conflicts.
Restart your computer and hold down the Shift key while clicking the restart button in the power menu. Windows will show you boot options. Select Troubleshoot > Advanced options > Startup Settings, then click Restart. When the startup menu appears, press 4 or F4 to enter Safe Mode. Once in Safe Mode, use the Settings method described above to disable real-time protection, then restart normally.
Frequently Asked Questions
Will disabling Windows Defender slow down my computer?
No — disabling it will actually free up a small amount of processing power and memory. However, you lose protection against viruses and malware, so the trade-off is security, not performance. If you disabled it to speed up your computer, the gain is usually small enough that it is not worth the risk.
Can I disable just the firewall part of Windows Defender?
Yes. In Settings, go to Update & Security > Windows Security > Firewall & network protection, then click the network you are connected to and toggle off the firewall for that network only. This disables the firewall without touching the antivirus scanner.
What if Windows Defender keeps turning back on?
If you used the Registry method and it keeps re-enabling, Windows may have re-enabled it because no other antivirus is running. Install a replacement antivirus program first, then disable Windows Defender again. If it still re-enables, you may need to disable the Windows Security app itself through Settings > Apps > Apps & features, though this leaves your computer completely unprotected.
Is it safe to run my computer without any antivirus?
No. If you disable Windows Defender, you should have another antivirus program running. Running without protection exposes you to malware, ransomware, and other threats. Only disable Windows Defender if you are installing a replacement when ready or if you are working in an isolated test environment with no internet connection.
Do I need to restart my computer after disabling Windows Defender?
For the temporary disable through Settings, no — it takes effect when ready. For the Group Policy or Registry methods, yes — you must restart for the changes to take effect.