How to Fix Windows Defender When It Won’t Open or Is Locked

Find out whether the app, the antivirus engine or a policy lock is at fault, then reset Windows Security, clear leftover policies and work with Tamper Protection safely.

Toprak Kaan Genç Category: Software 9 min read
How to Fix Windows Defender When It Won’t Open or Is Locked

Knowing how to fix Windows Defender starts with one question: is the app broken, is the antivirus engine off on purpose, or is a policy locking it? Each has a different fix, and a reset won’t help if a policy or another antivirus is behind it. Everything here uses Microsoft’s built-in tools on Windows 10 and 11.

Sign in with an administrator account first: most fixes need admin rights.

How to Fix Windows Defender: Find What’s Actually Broken First

The first step in how to fix Windows Defender is telling two parts apart: Windows Security (the shield app) and Microsoft Defender Antivirus (the scanning engine). The app can fail while the engine keeps working, and the engine can be off by design.

Manage providers

Under Virus & threat protection > Who’s protecting me? > Manage providers, another antivirus listed as on means Defender is meant to be off.

MsMpEng.exe

In Task Manager (Ctrl + Shift + Esc) > Details, MsMpEng.exe means the engine is running even if the app won’t open.

AMRunningMode

In the command below, Normal means Defender is active; Passive or SxS Passive Mode means another product leads. Anything else, or error 0x800106BA, means it’s disabled: expected with another antivirus, otherwise check policies.

Right-click Start, open Terminal (Admin) (Windows PowerShell (Admin) on Windows 10) and run:
Get-MpComputerStatus | Select-Object AMRunningMode, IsTamperProtected, RealTimeProtectionEnabled
True means that feature is on. Then jump to app repair, another antivirus or a policy lock.

How to Fix Windows Defender Not Opening: Repair, Reset, System Files

If the shield does nothing or opens a blank window, try Start search, Settings > Privacy & security > Windows Security (Windows 11) or Settings > Update & Security > Windows Security (Windows 10).

Repair or reset it in Settings

Quickest on both versions: search Start for Windows Security, right-click it and choose App settings, then Repair if it’s listed and Reset if that fails. It may also be listed under Settings > Apps > Installed apps, System > System components (Windows 11) or Apps & features (Windows 10). If Settings won’t open either, see when Windows won’t open Settings.

Reset only this app with PowerShell

In PowerShell as administrator, confirm the package first:
Get-AppxPackage *SecHealthUI*
On Windows 11 it’s named Microsoft.SecHealthUI. Then reset it to its initial configuration:
Get-AppxPackage *SecHealthUI* | Reset-AppxPackage

Older guides on how to fix Windows Defender use Microsoft.Windows.SecHealthUI, the Windows 10 name, which finds nothing on current Windows 11 builds; the wildcard above matches both.

How to fix Windows Defender not opening: resetting the Windows Security app on a laptop

Repair Windows system files

Still stuck? In an admin Command Prompt, run DISM first, then SFC, and restart:
DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow

Defender Is Off Because Another Antivirus Took Over

Before you look up how to fix Windows Defender, check whether it’s off on purpose. On a home PC, installing another antivirus automatically puts Defender into Disabled mode (or Passive on Windows 11 when Smart App Control is on or in evaluation). Microsoft’s compatibility notes say it switches back on if that product expires, is uninstalled or stops protecting.

Below the other product’s name, a Microsoft Defender Antivirus options toggle turns on limited periodic scanning, which, per Microsoft, can’t detect most malware.

Defender stayed off after you removed the other antivirus?

Leftovers can make Windows think it’s still installed. Run the vendor’s removal tool: Norton’s, for example, is Norton 360 Remover; choose Remove (not Reinstall), then Uninstall and Restart Now. Uninstalling doesn’t cancel a Norton subscription.

A common tip for how to fix Windows Defender is restarting or reconfiguring its services. Don’t: Microsoft says changing WinDefend, SecurityHealthService, wscsvc or MsMpEng can cause severe instability, and with wscsvc disabled, Defender can’t detect another antivirus and stays on alongside it.

“Your IT Administrator Has Limited Access”: Check Who Manages the PC

The full message starts with “Page not available”. When a policy hides Virus & threat protection, it also vanishes from the home page and side menu.

On a work or school PC, the organization’s policy outranks local changes. Open Settings > Accounts > Access work or school; if a connection is listed, select it and choose Info to see its policies. On a work laptop, ask IT how to fix Windows Defender instead of changing it yourself.

Disconnect also cuts your access to that organization’s email, apps and network, can lose data, and some organizations block it. With no connection on a personal PC, suspect leftover policies from a tweak or “debloat” tool, an old antivirus, or malware.

Remove Leftover Defender Policies on a PC Nobody Manages

Unmanaged personal PCs only

Only do this when Access work or school lists no organization. A wrong registry edit can break Windows or apps, so export each key first.

Here’s how to fix Windows Defender when leftover policies lock it. Press Win + R, run regedit (Windows key dead? See our Windows key fix) and paste this into the address bar:
HKLM\SOFTWARE\Policies\Microsoft

1

Export the keys

Right-click Windows Defender Security Center, then Windows Defender, and Export each one. Skip any that’s missing.

2

Pro: Group Policy

On Pro, Enterprise or Education, open gpedit.msc at Computer Configuration > Administrative Templates > Windows Components. In Microsoft Defender Antivirus (and every subfolder) and Windows Security, set each Enabled or Disabled policy you didn’t set to Not configured; click the State column to sort them.

3

Delete leftovers

On any edition, delete every value you didn’t set, such as DisableRealtimeMonitoring or UILockdown, under Windows Defender and its subkeys (Real-Time Protection, Spynet, Scan, Signature Updates) and each Windows Defender Security Center subkey. Leave an empty Policy Manager key alone.

4

Restart and scan

Restart. If you didn’t set these policies, save your work and run Virus & threat protection > Scan options > Microsoft Defender Antivirus (offline scan); the PC restarts to scan, and results appear in Protection history.

Microsoft’s Windows Security policy reference lists every area key.

Found DisableAntiSpyware there? Delete it too: Microsoft says that legacy setting isn’t intended for consumer devices, so ignore any guide on how to fix Windows Defender that says to add it.

If those keys are empty and the message remains, reset the Windows Security app.

Why Windows Won’t Let You Turn Off Real-Time Protection

If you’re working out how to fix Windows Defender because the real-time switch won’t turn off, look at it first. Grayed out with “This setting is managed by your administrator” means a policy (see above). No Defender switches at all means another antivirus is in charge. Otherwise, it’s Tamper Protection: Microsoft says it must be off first.

Tamper Protection is on by default for home users and stops other apps from changing real-time, cloud and update settings. Registry edits are blocked, Group Policy changes can look applied when they aren’t, and each blocked change is logged as Event 5013. Only Windows Security, not PowerShell, can switch it off.

Turn it off temporarily, the official way

  1. Open Windows Security > Virus & threat protection > Manage settings, or run windowsdefender://threatsettings/ from Win + R.
  2. Turn Tamper Protection off first, if it’s on.
  3. Switch Real-time protection off and run the blocked installer or task.
  4. When you’re done, switch Real-time protection back on, then turn Tamper Protection back on.

Real-time protection also comes back on by itself after a short while. Meanwhile, files you open or download aren’t scanned until the next scheduled scan. If only one file or folder is blocked, Microsoft’s official steps suggest an exclusion (Manage settings > Exclusions) instead, though scheduled scans may still check it.

Locked real-time protection setting on a Windows laptop
Never make it permanent

Turning protection off for good is never how to fix Windows Defender: attackers often try exactly that, which is why Windows resists. If it keeps blocking an installer, see when Windows won’t let you install Chrome.

How to Fix Windows Defender Virus & Threat Protection Errors

Scans failing or definitions stuck? Check these in order:

  • Updates. Open Virus & threat protection > Protection updates > Check for updates, then install anything pending in Windows Update.
  • Event Viewer. Press Win + R, run eventvwr.msc and open Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational.
  • MpCmdRun. In an admin Command Prompt, list the platform versions:
    cd "C:\ProgramData\Microsoft\Windows Defender\Platform"
    dir
    cd into the highest-numbered one (or C:\Program Files\Windows Defender if Platform is missing) and run:
    MpCmdRun -SignatureUpdate
    For corrupted definitions, roll back with this, then update again:
    MpCmdRun -RemoveDefinitions -All
Event or errorMeaningWhat to do
5001Real-time protection disabledCheck Tamper Protection and policies
5007Configuration changedIf unexpected, review settings: it may be malware
5013Tamper Protection blocked a changeNote which setting was targeted
2001Definition update failedRetry with MpCmdRun -SignatureUpdate

The last step in how to fix Windows Defender is checking that the fix holds: restart, then look for new 5001 or 2001 events.

How to Fix Windows Defender: Quick Answers

Real-time protection keeps turning back on. Is something wrong?

No. The off switch is temporary by design. If protection keeps switching off instead, look for events 5001 and 5007.

Is it safe to reset the Windows Security app?

Yes. If you’re wondering how to fix Windows Defender when the window won’t open, Repair and then Reset are the safest first steps. The app is a dashboard, not the engine, so a reset doesn’t remove Defender.

Can I uninstall and reinstall Windows Security?

No. It’s a system app that can’t be uninstalled, and Microsoft doesn’t recommend removing Defender. Use Reset, DISM and SFC instead.

Still Broken? Repair Windows as the Last Resort

If nothing here works, how to fix Windows Defender comes down to repairing Windows itself. On recent Windows 11 versions, System > Recovery > Fix problems using Windows Update reinstalls Windows and keeps your apps and files. Reset this PC (same page; Update & Security > Recovery on Windows 10) removes installed apps even with Keep my files, so back up first.

More fixes are in our software and apps guides.

Leave a comment

Your email address will not be published.