Updated on November 7, 2026.
Open Windows Security and go to Virus & threat protection > Manage settings > Real-time protection. Use that switch to turn Microsoft Defender’s live antivirus scanning on or off. If you turn it off, Windows can switch it back on automatically after a short time.

Turn real-time protection on or off
- Open Start, search for Windows Security and open it.
- Select Virus & threat protection.
- Under Virus & threat protection settings, select Manage settings.
- Set Real-time protection to On to resume live scanning, or Off for a brief troubleshooting check. Approve the administrator prompt if Windows asks.
- After the check, return to the same screen and verify that the switch is On.
While live scanning is off, files you open or download can go unchecked until a scan runs. Scheduled scans can still run. Microsoft describes the switch and its automatic reactivation in its guide to Virus & threat protection.
What to check if the switch is missing or locked
| What you see | What to check |
|---|---|
| Another antivirus is listed | Open Windows Security > Settings > Manage providers. Under Antivirus, see which product is protecting the PC. |
| Your organization manages the setting | Ask your IT administrator to check the policy and run the troubleshooting test with you. |
| Tamper Protection is blocking the change | If you need a brief pause on a PC you administer, turn off Tamper Protection on the same Manage settings screen first. Turn both protections back on when you finish. |
| Protection is off after uninstalling another antivirus | Complete that product’s uninstall, restart Windows and open Manage providers again. Follow Windows Security’s prompt to turn on protection if it appears. |
Windows can put Defender in a different mode when a compatible antivirus is registered. Which mode you see depends on the PC’s setup and any enterprise security tools it uses. Check the active product in Microsoft’s Manage providers guide. For managed PCs, see Microsoft’s compatibility details.
Check a blocked file before turning off protection
Open Windows Security > Virus & threat protection > Protection history and read what Defender found. Confirm the file came from the official source and check with the publisher if you think it was flagged by mistake. See our Defender quarantine guide for the available actions.
If you have verified a particular file and need it excluded, keep the exclusion as narrow as possible. Defender skips excluded items in the scans covered by the setting. Microsoft explains the options in its protection settings guide.
Frequently asked questions
How can I tell whether Microsoft Defender is on?
Open Windows Security > Settings > Manage providers and check the Antivirus section. If Microsoft Defender Antivirus is your active provider, you can also check its Real-time protection switch under Manage settings.
Why did Windows turn Defender back on?
The Windows Security switch is designed for a temporary pause. Windows restores real-time protection automatically after a short time.
Does turning off real-time protection turn off the firewall?
Windows Firewall has separate controls under Firewall & network protection. The real-time switch controls Defender Antivirus scanning.
Can I turn Defender on while another antivirus is installed?
Windows chooses the active antivirus based on the registered provider and your device configuration. Start with Manage providers. If you are changing antivirus products, follow the old product’s uninstall steps and verify that your chosen provider is active afterward.
What if Windows says an administrator manages the setting?
Ask the administrator to check your organization’s policy. Work or school management can control which Defender settings you can change.