Microsoft Defender (Windows Security) protects your PC from viruses for free. Sometimes you need to pause it briefly, for example when it wrongly blocks a safe file you trust or slows down an install. Here’s how to turn off Windows Defender real-time protection safely, why it turns back on, and better options than switching it off.
Short answer: open Windows Security → Virus & threat protection → Manage settings and turn off Real-time protection. If it won’t switch, turn off Tamper Protection first (same page). Real-time protection turns back on automatically after a short while. If you install another antivirus, Defender turns itself off on its own. A safer option is adding an exclusion for one file or folder you trust.
Applies to: Windows 11 and Windows 10, October 2026.
Safety first: don’t leave your PC unprotected, and never turn off Defender to run cracked software or files from unknown sites. Most “you must disable antivirus” instructions come from malware.
How to turn off real-time protection

- Click Start, type Windows Security and open it.
- Click Virus & threat protection.
- Under Virus & threat protection settings, click Manage settings.
- Turn off Real-time protection and click Yes.
Shortcut: paste windowsdefender://threatsettings/ into the Run box (Windows + R).
If the switch won’t turn off: Tamper Protection
Tamper Protection stops apps changing Defender settings. On the same Manage settings page, turn off Tamper Protection, then turn off real-time protection. Turn both back on when you’re done.
Why does Defender turn back on?
Microsoft designed real-time protection to turn back on automatically after a short time, so your PC isn’t left unprotected. Scheduled scans also keep running.
Better option: add an exclusion

If Defender keeps blocking a file you trust:
- Virus & threat protection → Manage settings.
- Scroll to Exclusions → Add or remove exclusions.
- Click Add an exclusion → choose File, Folder, File type or Process.
Only exclude files you’re sure are safe.
Restore a file Defender quarantined
Virus & threat protection → Protection history → click the item → Actions → Restore (only if you’re sure it’s safe).
Other Defender switches

| Setting | What it does |
|---|---|
| Real-time protection | Scans files as you open them |
| Cloud-delivered protection | Uses Microsoft’s cloud for faster detection |
| Automatic sample submission | Sends suspicious files to Microsoft |
| Tamper Protection | Stops apps changing these settings |
| Firewall | Separate; in Firewall & network protection |
Using another antivirus?
When you install a compatible antivirus (like Bitdefender, Norton or ESET), Defender turns itself off automatically. Uninstall the other antivirus and Defender turns back on.
Work or school PCs
If settings are greyed out with “managed by your organization”, your IT admin controls Defender. Ask them instead of trying to bypass it.
Related guides
- How to start Windows 11 in Safe Mode
- How to turn off Windows updates
The short version
Open Windows Security → Virus & threat protection → Manage settings and turn off Real-time protection (turn off Tamper Protection first if needed). It turns itself back on soon. For a trusted file Defender keeps blocking, add an exclusion instead.
Sources
- Microsoft Support: Turn off Defender antivirus protection in Windows Security