Windows Defender can be disabled, but understand why you might want to before you do

Windows Defender is the built-in antivirus program that runs on Windows computers. You can turn it off entirely, turn off specific features like real-time scanning, or exclude certain files and folders from scanning. Most people should leave it running — it catches real threats without slowing your machine much. But if you use a different antivirus program, need to run software that Defender blocks incorrectly, or want to test something in a controlled way, you have options.

The steps differ depending on what you want to disable and which version of Windows you have. Turning off Defender completely is harder than it used to be — Windows makes you work for it — but it is still possible.

Key Takeaways

  • Real-time protection can be toggled off in Windows Security settings, but the change may revert after a restart or Windows update.
  • To disable Defender permanently, you need to edit the Group Policy Editor (gpedit.msc) on Windows Pro or Enterprise, or use the Registry on Windows Home.
  • Excluding a specific file or folder from scanning is simpler than disabling Defender entirely and is the right choice if one program keeps getting blocked.
  • If you install a third-party antivirus, Windows Defender usually disables itself automatically to avoid conflicts.
  • Disabling your antivirus leaves your computer vulnerable to malware, so only do this if you have a specific reason and understand the risk.

Turn off real-time protection temporarily

The quickest way to stop Defender from scanning files in the moment is to disable real-time protection. This works on all Windows versions. Open Windows Security (search for it in the Start menu), click Virus & threat protection, then click Manage settings under "Virus & threat protection settings". Toggle off Real-time protection.

This change usually lasts until your next restart or until Windows Update runs. It is useful if you need to install a program that Defender keeps blocking, or if you want to test something without antivirus interference. After you are done, toggle it back on. Do not leave it off permanently — you are unprotected while it is disabled.

Disable Defender permanently on Windows Pro or Enterprise

If you have Windows Pro, Enterprise, or Education edition, you can use Group Policy Editor to disable Defender permanently. Press Windows key + R, type gpedit.msc, and press Enter. Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.

Double-click Turn off Microsoft Defender Antivirus and select Enabled. Click Apply and OK. Restart your computer. Defender will stay off after restarts and updates, unlike the real-time protection toggle. To turn it back on, return to the same setting and select Disabled or Not Configured.

Disable Defender on Windows Home using the Registry

Windows Home does not have Group Policy Editor, so you need to edit the Registry instead. Press Windows key + R, type regedit, and press Enter. Navigate to HKEY_LOCAL_MACHINE > SOFTWARE > Policies > Microsoft > Windows Defender. If the Windows Defender folder does not exist, right-click on Microsoft, select New > Key, and name it Windows Defender.

Right-click in the empty space on the right side, select New > DWORD (32-bit) Value, and name it DisableAntiSpyware. Double-click it and set the value to 1. Click OK and restart your computer. To re-enable Defender, change the value back to 0 or delete the entry.

Editing the Registry is riskier than Group Policy because a mistake can cause problems. If you are not comfortable with it, stick to disabling real-time protection instead, or use a third-party antivirus that will disable Defender automatically.

Exclude a file or folder instead of disabling Defender

If Defender keeps blocking a specific program or file that you trust, excluding it is safer than turning off your antivirus entirely. Open Windows Security, go to Virus & threat protection > Manage settings, and scroll down to Exclusions. Click Add or remove exclusions.

Click Add an exclusion and choose File, Folder, File type, or Process. Select the item you want to exclude. Defender will stop scanning that specific file, folder, file type, or running program, but will continue protecting the rest of your system. This is the right choice if you have one program that conflicts with Defender but you want antivirus protection for everything else.

What happens when you install a different antivirus

If you install a third-party antivirus program like Norton, McAfee, Bitdefender, or Kaspersky, Windows Defender usually disables itself automatically. Two antivirus programs running at the same time can conflict, slow your computer, and give false alerts, so Windows detects when you have installed another one and turns Defender off.

You can verify this in Windows Security — if Defender is off, the status will say so. If you later uninstall the third-party antivirus, Defender may not turn back on automatically. Return to Windows Security and re-enable it manually, or use the Group Policy or Registry steps above to turn it back on.

Risks of running without antivirus protection

Disabling Defender leaves your computer vulnerable to malware, ransomware, spyware, and other threats. These can steal your passwords, encrypt your files for ransom, track your activity, or use your computer to attack other systems. You might not notice an infection until serious damage is done.

If you disable Defender, do it only for a specific reason — testing software, installing a program that conflicts with it, or using a different antivirus. Do not leave your computer unprotected long-term. If you are unsure whether you need to disable it, the safest choice is to leave it on and exclude the specific file or folder causing problems instead.

Frequently Asked Questions

Will disabling Defender speed up my computer?

Probably not noticeably. Defender uses very little CPU and memory on modern computers. If your machine feels slow, the cause is usually something else — too many programs running at startup, a full hard drive, or older hardware. Disabling Defender is unlikely to fix it.

Can I disable Defender and use nothing else?

Technically yes, but it is not recommended. You would have no protection against malware. If you want to disable Defender, install a different antivirus first so your computer stays protected. Windows Defender is free and effective — most people should use it.

Does disabling Defender affect Windows Update?

No. Windows Update runs independently and will continue to install security patches and other updates whether Defender is on or off. Disabling Defender does not stop Windows from updating itself.

If I disable Defender, will it turn back on automatically?

It depends on how you disabled it. If you toggled off real-time protection in Windows Security, it may turn back on after a restart or update. If you used Group Policy or Registry to disable it, it will stay off until you manually re-enable it using the same method.

Can I disable just Windows Defender but keep other Windows Security features?

Partially. You can turn off real-time protection while keeping firewall, account protection, and app security features running. However, if you use Group Policy or Registry to disable Defender entirely, some related security features may also turn off. Check Windows Security after making changes to see what is still active.