sodcalculator

10 Tech How-To

Fix Windows Defender Error 0x8007042 & Related Codes

Guide 10-47823 · Updated · Step by step

Windows Defender error 0x8007042 (and its close relatives 0x80070422 and 0x8007042c) usually means the security service can’t start or is blocked by another program, a corrupted system file, or a misconfigured Windows setting. This guide walks you through the most reliable fixes, from quick service checks to deeper system repairs, so you can get real-time protection running again.

What You’ll Need

  • Administrator access to your Windows PC (you’ll need to approve User Account Control prompts).
  • A stable internet connection for downloading updates if needed.
  • Patience – some steps require a restart.

Step-by-Step

  1. Restart your PC. Sounds basic, but a temporary glitch in the Security Center service often clears with a reboot. Save your work and restart, then try opening Windows Security again.
  2. Run the Windows Security troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters. Find Windows Security, click Run, and follow the prompts. This automatically checks for common issues like disabled services or corrupted settings.
  3. Check the required services. Error 0x80070422 specifically points to a service that isn’t running. Press Win + R, type services.msc, and press Enter. Find each of these, double-click it, set Startup type to Automatic, and click Start if it’s stopped:
    • Windows Defender Antivirus Service (WinDefend)
    • Windows Defender Firewall (mpssvc)
    • Security Center (wscsvc)
    • Windows Management Instrumentation (Winmgmt)

    After setting them all, restart your PC.

  4. Use the Command Prompt to re-register Defender. If services won’t start, open Command Prompt as Administrator (search “cmd”, right-click, Run as administrator). Run these commands one by one, pressing Enter after each:
    reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware
    reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiVirus
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\WinDefend" /v Start /t REG_DWORD /d 2 /f

    Then restart your PC.

  5. Check for third-party antivirus conflicts. If you have another antivirus (Norton, McAfee, Avast, etc.), it may have disabled Defender. Uninstall it completely using its official removal tool, then restart. Windows Defender should re-enable automatically.
  6. Run System File Checker and DISM. Corrupted system files are a common cause. Open Command Prompt as Administrator and run:
    sfc /scannow

    Wait for it to finish. Then run:

    DISM /Online /Cleanup-Image /RestoreHealth

    This can take 15-20 minutes. Restart afterward.

  7. Update Windows. Go to Settings > Windows Update > Check for updates. Install all pending updates, including optional ones, then restart. Microsoft frequently ships fixes for Defender service issues.
  8. Reset Windows Security app. Go to Settings > Apps > Installed apps. Find Windows Security, click the three dots, choose Advanced options, then Reset. This reinstalls the app without affecting your files.
  9. Perform a clean boot. This isolates third-party software conflicts. Press Win + R, type msconfig, go to the Services tab, check Hide all Microsoft services, click Disable all. Then go to the Startup tab and click Open Task Manager, disable all startup items. Restart and test Defender. If it works, re-enable services one by one to find the culprit.

Common Mistakes

  • Only restarting the service, not setting it to Automatic. If the startup type is “Manual” or “Disabled,” it will fail again after reboot.
  • Skipping the DISM command. SFC alone often can’t fix the underlying image corruption; DISM must run first or after.
  • Leaving remnants of a third-party antivirus. Simply uninstalling via Control Panel often leaves drivers and services that still block Defender.
  • Running commands without Administrator rights. The commands will fail silently or show “access denied.” Always right-click and select “Run as administrator.”
  • Not restarting between steps. Some changes only take effect after a full reboot.

Tips

  • Keep a single antivirus active. Running two simultaneously causes exactly these kinds of conflicts.
  • Create a system restore point before making registry changes, so you can roll back if something goes wrong.
  • If you’re on a work or school PC, group policies may be blocking Defender. Contact your IT admin before making registry edits.
  • Use the Windows Security app’s “Device security” page to check if “Core isolation” or “Memory integrity” is off; enabling it can sometimes trigger the error, and toggling it off/on may help.

Troubleshooting

If the steps above don’t resolve the error:

  • Check the Event Viewer. Press Win + R, type eventvwr.msc, go to Windows Logs > System. Look for red error entries around the time the error appears. The source (e.g., “Service Control Manager”) and message can point to the exact failing service.
  • Verify your Windows license is genuine. An unactivated or non-genuine copy can sometimes prevent Defender from starting.
  • Try the “Windows Security” app from the Microsoft Store. Search for “Windows Security” in the Store; if an update is available, install it.
  • Use the Media Creation Tool to repair in-place. Download the Windows installation media, run it, and choose “Upgrade this PC now.” This reinstalls Windows while keeping your files and apps. It often fixes deep system corruption.
  • As a last resort, reset your PC. Go to Settings > System > Recovery > Reset PC. Choose “Keep my files” to avoid data loss. This is drastic but almost always resolves persistent service errors.

Frequently Asked Questions

Q: What exactly does error 0x80070422 mean?
A: It translates to “ERROR_SERVICE_DISABLED.” The Windows Defender service is either disabled, not set to start automatically, or blocked by group policy or another program.

Q: Is error 0x8007042 the same as 0x80070422?
A: They’re related but not identical. 0x8007042 is a general “service cannot be started” error, while 0x80070422 specifically indicates the service is disabled. Both share the same fixes.

Q: Can I fix this without admin rights?
A: No. Starting services, editing the registry, and running SFC all require administrator privileges. You’ll need to ask the PC’s administrator to perform these steps.

Q: Will I lose my files if I reset Windows?
A: If you choose “Keep my files,” your personal documents, photos, and apps are preserved. However, some system settings and installed drivers may be reset. Always back up important data first.

Q: Why did this happen after I installed a new program?
A: Some software, especially security tools or system optimizers, can disable Windows Defender services as part of their installation. Uninstalling that program (and using its dedicated removal tool) often reverses the change.

Q: Is it safe to use Windows without Defender while I fix this?
A: It’s not ideal. Until the error is resolved, your PC is without real-time antivirus protection. Avoid downloading files or visiting untrusted sites, and consider using a reputable on-demand scanner like Microsoft Defender Offline until the issue is fixed.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →