How To Turn Off Microsoft Defender Real-Time Protection (2026)
Windows Security can block an installer or a file you know is safe, and the quickest test is to switch real-time protection off for a moment.
Microsoft built this switch to be temporary, so Windows turns it back on by itself after a short while.
This guide follows Microsoft’s own Windows Security pages and shows where the switch is, what changes while it is off, and how to turn it back on.
Quick answer: turn it off and back on
The setting lives in the Windows Security app under Virus and threat protection.
| Goal | Where to go | What to do |
|---|---|---|
| Open the app | Start menu search | Search for Windows Security and open it |
| Find the switch | Virus & threat protection > Manage settings | Look for the Real-time protection toggle |
| Turn it off | Real-time protection toggle | Set it to Off and approve any prompt |
| Turn it back on | Same toggle | Set it to On, or wait for Windows to do it |
Open Windows Security
Microsoft’s page says to search for Windows Security in the Start menu and open the app from the results.
The app brings together Microsoft Defender Antivirus, Windows Firewall and Smart App Control in one window.
Its left-hand areas include Virus & threat protection, Account protection, App and browser control, Device security and Protection History.
Turn off real-time protection
- Open Windows Security from the Start menu.
- Select Virus & threat protection.
- Under Virus & threat protection settings, select Manage settings.
- Under Real-time protection, move the toggle to Off.
- If Windows asks for permission to make the change, approve it.
Microsoft describes this as a temporary change, so you do not need to hunt for a separate “permanent” switch.
What changes while it is off
Real-time protection is the part of Microsoft Defender Antivirus that scans files and programs as you open or run them.
Once it is off, nothing you open or download is checked at that moment, and the files you install are not scanned until the next scheduled scan.
Scheduled scans still run, so the protection is reduced rather than removed completely.
| Item | While real-time protection is off |
|---|---|
| Files you open or run | Not scanned as you open them |
| Downloads and installs | Not scanned until the next scheduled scan |
| Scheduled scans | Still run |
| Manual scans | Still available from Virus & threat protection |
Only switch it off for a file or installer you fully trust, and turn it back on as soon as you are done.
Why it turns itself back on
Microsoft says real-time protection comes back on automatically after a short while.
The page does not give an exact number of minutes, so do not count on a fixed delay.
If you need it off for longer than that, switching the toggle off again is the only route Microsoft documents.
The simpler and safer plan is to turn it back on yourself the moment the task is finished.
If the toggle will not stay off: Tamper Protection
Tamper protection stops other apps from changing key Defender settings, including real-time protection and cloud-delivered protection.
Microsoft’s page says that if tamper protection is on, you should turn it off first before you switch real-time protection off.
You will find the tamper protection toggle on the same Manage settings screen.
Administrators can still change these settings from Windows Security, but other apps cannot.
Use an exclusion instead for one file or folder
If only one file or folder keeps getting flagged, Microsoft suggests adding an exclusion instead of switching protection off for the whole PC.
- On the Manage settings screen, scroll to Exclusions and select Add or remove exclusions.
- Select Add an exclusion.
- Choose File, Folder, File type or Process, then pick the item.
Microsoft warns that excluded items are not checked by Defender, which can raise your risk.
If you want to check a download afterwards, see our guide to scanning Windows 11 for malware with Windows Security.
When another antivirus is installed
Microsoft says that installing a compatible non-Microsoft antivirus makes Microsoft Defender Antivirus turn itself off automatically.
That is why trial software on a new PC can leave Defender switched off without you touching it.
Microsoft’s antivirus FAQ also says Defender turns itself back on if you have no other security product, or if your existing product has expired.
It recommends not running two real-time antivirus products at once, because that can hurt performance and may cause an error such as 0x80070643 during an update or install.
If an old trial is the one causing the trouble, our guide to stopping McAfee pop-ups covers what to do next.
| Situation | What Microsoft says happens |
|---|---|
| You install a compatible third-party antivirus | Defender turns itself off |
| You have no other security product | Defender turns itself on |
| Your other security product expires | Defender turns itself on |
| You turn real-time protection off yourself | It returns after a short while |
Turn it back on yourself
- Open Windows Security and select Virus & threat protection.
- Select Manage settings.
- Switch Real-time protection to On.
- Keep Cloud-delivered protection and Automatic sample submission on for the best protection, as Microsoft advises.
A quick scan afterwards is a sensible check if you downloaded something while protection was off.
Select Virus & threat protection, then Quick scan, to run one.