sodcalculator

10 Tech How-To

Fix Error 0x800704ec When Running Windows Defender

Guide 10-46550 · Updated · Step by step

Error 0x800704ec appears when Windows Defender (Microsoft Defender Antivirus) fails to start or scan, often due to a conflicting third-party antivirus, a corrupted service, or a policy setting. The fix is to ensure no other antivirus is active, then reset the Defender service and related registries, or use the built-in troubleshooter.

What Causes Error 0x800704ec

This error is a Windows system error code that translates to “The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.” When you see it while opening Windows Security or running a scan, it usually means the Windows Defender Antivirus Service (WinDefend) is not running or is blocked.

Common triggers include:

  • Another antivirus program (like Norton, McAfee, or Avast) is installed and has disabled Defender.
  • Group Policy or registry settings have turned off Defender.
  • Windows Update or a system corruption broke the Defender service.
  • Third-party security tools or “tweaking” utilities disabled Defender.

Check If Another Antivirus Is Interfering

Windows Defender automatically turns itself off when it detects another active antivirus. If you recently installed a third-party antivirus, that is the most likely cause. To check:

  1. Open Settings > Privacy & security > Windows Security > Virus & threat protection.
  2. Look under “Who’s protecting me?” – if another antivirus is listed, Defender is off by design.
  3. If you want Defender back, uninstall the third-party antivirus completely (use its official removal tool if available), then restart your PC.

After uninstalling, Defender should re-enable automatically. If not, proceed to the next steps.

Run the Windows Security Troubleshooter

Windows includes a built-in troubleshooter that can automatically find and fix problems with Windows Security. To run it:

  1. Open Settings > System > Troubleshoot > Other troubleshooters.
  2. Find Windows Security (or “Windows Defender”) in the list and click Run.
  3. Follow the on-screen instructions. It may ask you to apply fixes or restart.

Reset Defender Services via Command Prompt

If the troubleshooter doesn’t help, you can manually reset the services that Defender depends on. Open Command Prompt as administrator (search “cmd”, right-click, and choose “Run as administrator”), then run these commands one by one:

sc config WinDefend start= auto
sc start WinDefend
sc config WdNisSvc start= auto
sc start WdNisSvc
sc config WdNisDrv start= demand

If you get an error saying the service does not exist, the Defender service may be corrupted or removed. In that case, you may need to repair Windows using the Deployment Imaging Service and Management Tool (DISM) and System File Checker (SFC):

DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

Restart after running these commands.

Edit Group Policy or Registry (If You Have Pro/Enterprise)

If you are on Windows Pro or Enterprise, a Group Policy setting might have disabled Defender. Open gpedit.msc (Group Policy Editor) and navigate to:

Computer Configuration > Administrative Templates &strong;Windows Components > Microsoft Defender Antivirus

Double-click Turn off Microsoft Defender Antivirus. If it is set to Enabled, change it to Not Configured or Disabled, then click OK and restart.

For Home editions (which lack gpedit), you can edit the registry instead:

  1. Press Win+R, type regedit, and press Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender.
  3. If you see a value named DisableAntiSpyware, set it to 0 (or delete it).
  4. Restart your PC.

Use the Windows Security App to Reinstall Defender

In some cases, the Defender app itself is corrupted. You can reinstall it using PowerShell as administrator:

Get-AppxPackage Microsoft.Windows.SecHealthUI | Reset-AppxPackage

This resets the Windows Security app without affecting your personal files. After running it, restart and try opening Windows Security again.

Frequently Asked Questions

Will I lose my files if I reset Defender?

No. Resetting Defender services or the Windows Security app does not delete your personal files, documents, or photos. It only resets the antivirus configuration to its default state.

Can I run two antivirus programs at the same time?

Windows Defender automatically disables itself when another antivirus is active. Running two real-time antivirus programs simultaneously can cause conflicts and system slowdowns, so it is not recommended.

Why does the error appear after a Windows update?

Windows updates can occasionally reset or corrupt service configurations. The steps above (especially the DISM and SFC commands) are designed to repair such corruption.

Is it safe to delete the registry key DisableAntiSpyware?

Yes, if that key is set to 1, it disables Defender. Deleting it or setting it to 0 re-enables Defender. Always back up the registry before editing it.

What if none of these steps work?

If the error persists, you may need to perform a “repair install” of Windows using the Media Creation Tool, which reinstalls the OS while keeping your files and apps. Back up important data first.

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 →