How to fix Windows Defender when it is not working
Windows Defender is usually missing, disabled, or throwing service errors for one of three reasons: another antivirus is turning it off, a Windows policy or security setting is blocking it, or the Defender and Security Center services are broken. The safest fix is to check for outside blockers first, then restart the services, then repair Windows components and turn protection back on.
What exactly is broken: missing settings, service errors, or protection turned off
The fix depends on the symptom.
- Windows Security opens to an empty page
- Real-time protection is off and won’t stay on
- Tamper protection is missing or disabled
- Defender says it can’t start a service
- Security intelligence updates failA blank or partially missing Windows Security page usually points to a broken service, damaged system files, or a policy that hides Defender settings. A message about a service not running usually means the Security Center or Defender service is stopped. If the real-time protection switch turns itself off, or the toggle is grayed out, something on the PC is blocking it on purpose or Windows is refusing to change it.
If you can describe the exact message, use that as your clue. A service error usually means the repair should start with services. A missing protection toggle usually means policy, another antivirus, or a Windows security setting is in the way.
Before you start
These steps apply to Windows 10 and Windows 11 on a normal home PC where you have administrator access. They also apply to devices where Defender should be active but is stuck, missing, or half-disabled.
They do not apply cleanly if the PC is managed by an employer, school, or other organization. On those devices, Group Policy or a security management tool may be disabling Defender on purpose, and changing it locally may not stick.
You’ll need an administrator account for most of the fixes. A restart is involved, and a Windows repair install is only a later option if the earlier steps fail.
Before you change anything else, do these safe checks:
- Make sure you can sign in with an administrator account.
- Restart the PC once if it has been running for a long time.
If a third-party antivirus is installed, Defender may be disabled by design. In that case, the right fix is usually to remove the other antivirus first, not to force Defender on top of it.
Check for another antivirus before touching system settings
A second antivirus is one of the most common reasons Defender looks broken. Many security suites turn off Microsoft Defender Antivirus automatically so the two products do not conflict.
Open Settings and check installed apps for any security software other than Microsoft Defender. Look for products from vendors such as Norton, McAfee, Bitdefender, Kaspersky, Avast, AVG, ESET, Trend Micro, or similar.
If you find one, uninstall it from Settings > Apps > Installed apps on Windows 11 or Settings > Apps > Apps & features on Windows 10. Use the vendor’s own removal tool if the program leaves pieces behind, because a partial uninstall can keep Defender disabled.
Settings > Apps > Installed appsAfter uninstalling, restart the PC and open Windows Security again. If Defender comes back, the other antivirus was the cause. If nothing changes, the problem is somewhere else and you can move on.
Do not install a second antivirus just to test Defender. Running two full-time security products together can create conflicts and false alarms.
Restart the Windows Security and Defender services
If Windows Security opens badly or shows service errors, the services behind it may be stopped. You need an administrator account for this.
First, open the Services app and check these services:
Security CenterMicrosoft Defender Antivirus ServiceWindows Security Serviceif it appears on your version of Windows
services.msc- Open
services.msc. - Find
Security Center. - Double-click it and set
Startup typetoAutomaticif available. - Click
Startif the service is stopped. - Repeat for
Microsoft Defender Antivirus Service. - If
Windows Security Serviceappears, start it too.
If the service starts and Defender opens normally, the fix worked. If a service refuses to start, note the exact error and move to the Windows Update and system file checks next.
You can also check the service state from an elevated Command Prompt:
sc query wscsvc
sc query WinDefendA running service shows STATE as RUNNING. If one is stopped or missing, that points to a deeper Windows problem or a policy setting.
Turn real-time protection back on if the switch is grayed out
A grayed-out real-time protection toggle usually means Windows is blocking the change. The most common reasons are another antivirus, tamper protection, or a policy setting.
First, remove any third-party antivirus if you have not already. Then open Windows Security and check tamper protection.
Windows Security > Virus & threat protection > Manage settings- Open
Windows Security. - Go to
Virus & threat protection. - Select
Manage settings. - Turn
Tamper Protectionon if it is off and available. - Try turning
Real-time protectionon.
If the switch is unavailable, your account may not have permission or a policy is controlling it. On a personal PC, that usually means you need to remove the setting that disabled it. On a managed device, the policy may be intentional.
If real-time protection turns on but switches back off later, that often points to malware, a leftover antivirus driver, or a policy rule still in place. In that case, the service and policy checks below matter more than the toggle itself.
Repair Windows Security with Windows Update and system file checks
If Defender opens poorly or throws service-related errors, repair Windows first. Missing or damaged system files can break Windows Security even when the settings look normal.
Start with Windows Update and install any pending updates. Then restart the PC and check Defender again.
Settings > Windows UpdateIf the problem continues, run System File Checker from an elevated Command Prompt:
sfc /scannowExpected result: Windows checks protected files and repairs damaged ones if it can. If it reports that it found and fixed problems, restart and test Defender again.
If SFC says it could not fix everything, run DISM next from an elevated Command Prompt:
DISM /Online /Cleanup-Image /RestoreHealthExpected result: Windows repairs the component store that SFC depends on. If DISM completes, run sfc /scannow again afterward.
If neither tool changes anything, the broken piece may be policy-based or tied to another security product rather than system file damage.
If Defender is controlled by policy, undo the setting that disabled it
Group Policy and registry settings can hide Defender, disable real-time protection, or stop the service from starting. This often happens after a tweak tool, a “debloat” script, or an old how-to article changed a setting that no longer fits your setup.
If you have Windows Pro, Enterprise, or Education, check Group Policy:
Local Group Policy Editor > Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender AntivirusLook for policies that disable Microsoft Defender Antivirus or real-time protection. Set them to Not Configured unless your organization wants them enforced.
If you changed the registry directly or used a tool that did, check for Defender-disabling values under the same policy area. Back up the registry before changing anything.
Be careful here. A wrong registry change can break security settings further. If this is a work or school PC, stop and check with the device owner before changing policy.
After undoing a policy, restart the PC. If Defender starts working again, the policy was the blocker. If the policy keeps returning, the device is being managed and the setting may be re-applied from outside the PC.
Confirm Defender is working again
Once you think it is fixed, verify it from the Windows Security app instead of assuming it is fine.
Check these three things:
- Windows Security opens normally
Virus & threat protectionshows protection is on- Security intelligence updates are downloading
Run a quick scan:
Windows Security > Virus & threat protection > Quick scanIf the scan starts and completes, Defender is at least functioning enough to examine files. Then check update status in Virus & threat protection updates or Protection updates.
Windows Security > Virus & threat protection > Protection updatesExpected result: Windows shows that updates are current or offers a button to check for updates and completes it without errors.
If the app opens, scans, and updates, the repair held. If only part of that works, the remaining failure usually points back to a service, policy, or third-party security tool.
What to do if it still won’t start after all the fixes
If Defender still will not start after the service, update, file-check, and policy steps, the Windows installation itself may be damaged. The next sensible move is a Windows repair install, which refreshes system files without the more destructive step of wiping the PC.
If you are on a managed device, hand it to the person who controls it, because a policy or security agent may be restoring the broken setting every time you change it. If this is your own PC and even a repair install does not help, a reset may be the final option.
At that point, keep the machine protected another way only if you must, and avoid stacking more security tools on top of an unresolved Defender problem.
Conclusion
If Defender still acts broken after the checks above, the next step is usually a Windows repair install or a look at whatever antivirus or policy is forcing the change back. On a personal PC, fix the blocker first; on a managed PC, ask the owner of the device before changing more settings. Once Windows Security opens, scans, and updates normally, leave it alone and watch it for a day or two.
Frequently Asked Questions
Can I use Defender if another antivirus is installed?
Usually not in full-time mode. Most third-party antivirus apps turn Defender off by design, and Windows may keep it disabled until the other product is removed.
Why is the real-time protection switch grayed out?
The usual reasons are another antivirus, tamper protection, or a policy setting that is controlling Defender. On a managed device, that may be intentional.
Do I need administrator rights to fix Defender?
Yes for most of the service, policy, and repair steps. A standard account can check symptoms, but changing services and system settings usually needs administrator access.
Will SFC or DISM delete my files?
No. They repair Windows components and protected system files. They are common first-line fixes for Defender problems because they are much safer than resetting the PC.