How to turn off Windows Defender in Windows 11 and 10: fully or for one folder

Turn off Windows Defender in Windows 11 and 10 completely or just for your loader folder. Why it turns itself back on and how to restore a quarantined file.

Updated 29 October 2026 5 min read
Copy link Share
In short
  1. An exclusion is often enough: add the loader folder to “Exclusions” and Defender stops touching it.
  2. To turn it off completely, go in order: Tamper Protection, the other toggles, startup, a restart and the Defender Control tool.
  3. A deleted file isn’t gone: it sits in “Protection history”, and you can restore it from there.
  4. Third-party antiviruses (Kaspersky, Avast, ESET) have to be uninstalled, not paused.
Contents9
  1. What in Defender gets in the way
  2. Option 1: an exclusion for one folder
  3. Option 2: turn it off for a while
  4. Option 3: turn it off completely
  5. Defender deleted a file: how to get it back
  6. The “Windows protected your PC” window
  7. Why Defender turns itself back on
  8. How to turn Defender back on
  9. FAQ

You download a loader, unpack it — and a second later it’s gone. A “Threats found” toast pops up in the corner, and the file is in quarantine. That’s Windows Defender: the built-in antivirus treats almost any software that reaches into other programs’ memory as suspicious.

You don’t always need to remove it completely: an exclusion for a single folder is often enough. Turning it off fully is for when the product’s instructions ask for it.

What in Defender gets in the way

Defender isn’t a single switch but several protections, and each one gets in the way differently.

  1. SmartScreen won’t open a downloaded file
  2. Real-time protection moves the loader to quarantine
  3. Cloud-delivered protection sends the file to Microsoft for a check
  4. Tamper Protection restores settings — turn it off first
Each protection gets in the way differently. Tamper Protection holds the others: while it’s on, Windows switches the toggles back.

Hence the main rule: turn off Tamper Protection first. While it’s on, Windows puts the other settings back by itself, and it looks like nothing works.

Option 1: an exclusion for one folder

The gentlest way. Defender keeps guarding the system but stops touching the one folder where you keep the loader.

  1. Create a separate folder, for example C:\Games\Loader. Don’t put anything else in it.
  2. Open Start → Settings → Privacy & security → Windows Security → Virus & threat protection.
  3. Under “Virus & threat protection settings”, click Manage settings.
  4. Scroll to Exclusions, click Add or remove exclusions → Add an exclusion → Folder and pick the folder you created.
  5. Only now download and unpack the loader into that folder.

Option 2: turn it off for a while

Good for downloading and unpacking a file once.

  1. Open Windows Security → Virus & threat protection → Manage settings.
  2. Turn off Tamper Protection, then Real-time protection.
  3. Confirm the User Account Control prompt.

After a while, or after a restart, Windows turns real-time protection back on by itself: that’s by design. It isn’t enough for a loader you run regularly.

Option 3: turn it off completely

This is how our product instructions disable Defender, and most products launch with this order.

  1. Flip the toggles. In “Manage settings”, one by one: Tamper Protection, Real-time protection, Cloud-delivered protection, Automatic sample submission.
  2. Turn off reputation-based protection. “Windows Security → App & browser control → Reputation-based protection → Settings”: untick everything, SmartScreen included.
  3. Remove Defender from startup. Ctrl + Shift + Esc → “Startup apps” tab → Windows Security notification icon → “Disable”.
  4. Restart the computer. Some services only unload after a restart.
  5. Finish it with Defender Control. Download Defender Control (archive password: r1xon), run it as administrator and click Disable Windows Defender. The tile turns red.

Windows 10 and 11 Pro have one more route through Group Policy: gpedit.msc → “Computer Configuration → Administrative Templates → Windows Components → Microsoft Defender Antivirus” → set “Turn off Microsoft Defender Antivirus” to “Enabled”. It also only works with Tamper Protection off. The Home edition doesn’t have this console.

Defender deleted a file: how to get it back

A file Defender flagged as a threat isn’t gone for good — it sits in quarantine.

  1. Open Windows Security → Virus & threat protection → Protection history.
  2. Find the entry with your file. It shows the path the file was taken from.
  3. Click Actions → Restore or Allow on device.

So it doesn’t happen again, add the folder to exclusions or turn protection off first, and only then restore.

The “Windows protected your PC” window

That’s not Defender but SmartScreen: it won’t open a downloaded file that few people have run. You don’t need to delete anything.

Click More info, then Run anyway. To stop the window from appearing, turn SmartScreen off under “Reputation-based protection” (step 2 of option 3).

Why Defender turns itself back on

  • Tamper Protection is still on. It restores the other settings. Turn it off first.
  • The temporary pause ran out. The “Real-time protection” toggle switches itself back on after a while.
  • A major Windows update arrived. Settings sometimes reset after one: check them again.
  • A third-party antivirus is installed. Kaspersky, Avast, ESET and the like get in the loader’s way just like Defender. You need to uninstall them, not pause them: the antivirus driver stays in the system.

How to turn Defender back on

If you used the tool, run it again and click Enable Windows Defender. Then turn the toggles back on in “Manage settings”, starting with real-time protection and finishing with Tamper Protection. If you changed Group Policy, set the setting back to “Not configured”.

Defender rarely gets in the way alone. Secure Boot and Core Isolation usually sit next to it. The checker finds all of it at once:

Check your PC in 30 seconds R1XON Checker finds what blocks the launch: Defender, anti-cheats, Secure Boot, Hyper-V, Windows build. It changes nothing in the system.
Download R1XON Checker

FAQ

The PC is left without an antivirus, so be careful about what you download and run. An exclusion for one folder is the gentler option: Defender keeps guarding the rest of the system.

Usually Tamper Protection is still on, the temporary pause ran out, or a major Windows update arrived. Turn Tamper Protection off first and check the settings after updates.

Through Windows Security and the Defender Control tool. The Home edition has no Group Policy, so the gpedit.msc route doesn’t work there.

Yes. Pausing doesn’t help: the antivirus driver stays in the system and gets in the loader’s way just like Defender. Restart the PC after uninstalling.

Read next

All articles