Skip to content
PCFixWorkbench

Security · Windows 11

Fix Windows Security protection that keeps turning itself off

Written November 28, 2026

Real-time protection that switches itself back off is rarely a setting you changed — it usually means the Microsoft Defender Antivirus service is not running, or another antivirus has taken over and then failed. Check which protection is actually in charge first, remove the conflict next, and repair the service and system files only if the toggle still will not stay on.

What you need

Read the problem before you touch it

  1. See which antivirus Windows thinks is in charge. Open Windows Security > Virus & threat protection. If the page names a third-party product as your provider, Defender stepping aside is by design — the fault is in that product, not in the toggle. Microsoft describes this page in Virus and threat protection in the Windows Security app.
  2. Watch what the toggle actually does. Turn Real-time protection on and note whether it flips back instantly, survives until a restart, or stays on but the page shows a warning. Instant flip-back points at a service that cannot start; losing it at restart points at something re-disabling it at sign-in.
  3. Check for a managed-device message. If the page says some settings are managed by your organization on a work or school PC, stop here — your IT department controls protection, and local changes will keep being reversed.

The simple fixes, in order

  1. Restart the PC once, then recheck. A protection service that failed to start after an update often starts cleanly on the next boot. Recheck the toggle after the restart before changing anything else, so you know whether the fault is persistent.
  2. Remove the other antivirus completely. If a third-party antivirus is installed but expired, broken, or unwanted, uninstall it from Settings > Apps > Installed apps, then restart. Microsoft covers the process in Uninstall or remove apps and programs in Windows. Defender should take over on its own after the restart; two half-working products is the most common cause of this symptom.
  3. Update protection intelligence and Windows. On the Virus & threat protection page, choose Protection updates > Check for updates, then run Windows Update and restart again. A stuck definition update can leave the service refusing to stay on.
  4. Run a scan once protection stays on for a minute. Choose Scan options > Microsoft Defender Offline scan if the toggle now holds. Something actively turning protection off is exactly the pattern an offline scan is built for, and it runs before Windows fully loads.

The advanced route

  1. Check the Defender service state. Open Services, find Microsoft Defender Antivirus Service, and confirm it is running with startup type Automatic. If it is stopped, try starting it and note any error — a service that will not start points at damaged files, which the next step repairs. Leave the service's settings as you found them otherwise; forcing startup types by hand rarely fixes the cause.
  2. Repair system files with DISM, then SFC. Open Windows Terminal as administrator, run DISM /Online /Cleanup-Image /RestoreHealth, let it finish, then run sfc /scannow and restart. Microsoft documents both tools in Using System File Checker in Windows.
  3. Look for what re-disables it at sign-in. If protection survives a session but is off after every restart, open Task Manager's Startup tab and disable non-essential startup apps for one boot, then test. A leftover "optimizer" or an old security suite's helper is the usual culprit; re-enable items one at a time to find it, then uninstall that app.

End state

When it goes wrong

Related fixes

Sources