To turn on virus protection in Windows 10 or 11, open Windows Security, select Virus & threat protection, then Manage settings, and switch Real-time protection to On. If the switch is missing or flips back off, another antivirus is probably in charge, and the sections below show how to tell.
How to turn on real-time protection in Windows Security
- Open Start, type
Windows Securityand open the app. - Select Virus & threat protection.
- Select Manage settings.
- Set Real-time protection to On.
Microsoft's support page gives a shortcut to the same settings page: paste windowsdefender://threatsettings/ into the Start menu search or the Run box (Windows key + R). Microsoft's page says you can turn real-time protection on or off "using the toggle button".
Real-time protection is the part of Microsoft Defender Antivirus that scans files as you open or download them. With it off, Microsoft says files you open or download are not scanned, and downloaded or installed files are not checked until the next scheduled scan. Scheduled scans still run.
Why real-time protection keeps turning itself back on
If you turned it off and it came back, that is intended. Microsoft documents the Off setting as temporary: real-time protection turns back on by itself after a short while. That behaviour protects people who switch it off once and forget.
If you need Defender to ignore one trusted file or folder, Microsoft recommends an exclusion rather than turning protection off. Exclusions are under Manage settings, further down the same page. Use them sparingly: anything you exclude is invisible to scanning.
Check that virus protection is actually on (PowerShell)
The toggle can show On while something else is wrong, for example an old signature database or Defender running in a different mode. This command only reads status and changes nothing:
Get-MpComputerStatus | Select-Object AMRunningMode, AntivirusEnabled, RealTimeProtectionEnabled, AntivirusSignatureLastUpdated, AntivirusSignatureAge
Example output on a PC where Defender is the active antivirus (values will differ on yours):
AMRunningMode : Normal
AntivirusEnabled : True
RealTimeProtectionEnabled : True
AntivirusSignatureLastUpdated : 2026-11-11 06:12:40
AntivirusSignatureAge : 0
| Field | Healthy value | If it is different |
|---|---|---|
AMRunningMode | Normal | Another product is the main antivirus, or Defender is passive. Microsoft says you should see Normal, Passive or EDR Block Mode if antivirus protection is enabled. |
RealTimeProtectionEnabled | True | Turn it on in Windows Security as above. |
AntivirusSignatureAge | 0 or 1 (days) | Definitions are stale. Run Windows Update and check again. |
Microsoft's compatibility page also lists two lighter checks. In Task Manager, open the Details tab and look for MsMpEng.exe, the Defender process. In PowerShell, Get-Process should list MsMpEng.exe if Defender is running.
The switch is greyed out or missing: is another antivirus installed?
This is the most common reason that "turn on virus protection" fails. Check who is protecting the PC:
- In Windows Security, select Virus & threat protection.
- Under Who's protecting me?, select Manage providers.
- On the Security providers page, look under Antivirus.
Microsoft says that with Defender in charge you should see Microsoft Defender Antivirus is turned on. If a different product is listed, that product is your virus protection, and its own settings control whether it is on.
The rules, from Microsoft's compatibility table for Windows 10 and 11 PCs that are not enrolled in Defender for Endpoint (a business product):
| Main antivirus | Smart App Control | Defender Antivirus state |
|---|---|---|
| Microsoft Defender Antivirus | Off or Evaluation | Active mode |
| Microsoft Defender Antivirus | On | Hybrid mode |
| Non-Microsoft antivirus | Off | Disabled (automatic) |
| Non-Microsoft antivirus | Evaluation or On | Passive mode |
Smart App Control is a Windows 11 feature that can block apps considered malicious or untrusted. In short: if you installed a third-party antivirus, Defender stepping aside is correct, and you should not fight it. Running two active scanners is the unsupported setup; Microsoft's documentation warns of conflicts and reduced performance.
If the third-party subscription lapses or you uninstall it, Microsoft says Defender "can be re-enabled automatically". Do not assume it happened. Run the PowerShell check above and confirm RealTimeProtectionEnabled is True. If you want to go back to Defender deliberately, uninstall the other product, restart, and check Manage providers again.
Tamper protection and why you may not be able to switch it off
Tamper protection stops other apps from changing important Defender settings, including real-time protection. Microsoft notes that if tamper protection is on, you must turn it off before you can turn real-time protection off. Administrators can still change these settings in the Windows Security app. For most people this is the right state: it keeps malware from quietly disabling the scanner. If you only want protection on, you do not need to touch tamper protection at all.
If it still will not turn on
- Windows Security reports that settings are managed by your organization. On a work or school PC an administrator controls these settings. Ask your IT team instead of working around it.
- Do not stop Defender's services by hand. Microsoft advises against disabling, stopping or modifying
WinDefend,MsMpEng,wscsvcandSecurityHealthService. Doing so can cause instability and can stop Windows from detecting a third-party antivirus correctly. Microsoft specifically warns that if the Windows Security Center service is disabled, Defender cannot detect other antivirus installations and stays active, which can lead to conflicts. - Restart the PC after removing another antivirus, then check Manage providers again.
- Update Windows. If
AntivirusSignatureAgekeeps growing, definitions are not arriving. Install pending updates from Settings > Windows Update. - Suspect malware if it is off and you did nothing. If no other antivirus is listed, protection is off, and it will not turn back on, treat that as a warning sign. Run a full scan and follow how to delete a virus from your computer.
What turning it on does and does not cover
Real-time protection scans files and watches program behaviour on the PC. It does not stop you from typing your password into a fake login page, and it cannot replace installing Windows updates or keeping a backup. Keep it on, keep Windows updated, and treat unexpected downloads and email attachments with suspicion.
Frequently asked questions
- Why does real-time protection turn itself back on?
- Turning real-time protection off in Windows Security is temporary by design. Microsoft's documentation says it turns back on by itself after a short while, so that a PC is not left unprotected by accident. If you need to keep one trusted file or folder from being scanned, add an exclusion instead of switching protection off.
- Can I turn on Microsoft Defender if I have another antivirus installed?
- Not as a second active scanner. On Windows 10 and 11, a non-Microsoft antivirus that registers with Windows Security makes Defender Antivirus go into disabled mode automatically (or passive mode in some Windows 11 setups with Smart App Control). Microsoft says that Defender can be re-enabled automatically if the other product expires, is uninstalled or stops providing real-time protection.
- Is it safe to turn real-time protection off to install a program?
- It is a poor trade. With real-time protection off, files you open or download are not scanned until the next scheduled scan, which is the moment malware is most likely to arrive. If a trusted installer is being blocked, check Protection history and use an exclusion for that specific file or folder rather than leaving the PC unscanned.
- How do I know my virus protection is really working?
- Open Windows Security and check that Virus & threat protection shows no warnings, then run Get-MpComputerStatus in PowerShell and confirm AMRunningMode is Normal and RealTimeProtectionEnabled is True. A recent value for AntivirusSignatureLastUpdated shows that definitions are being updated too.