If Windows Security suddenly says Microsoft Defender is blocked and shows error 0x800704ec, it can feel like your PC lost its built-in protection overnight. The good news is that this problem is usually tied to a policy setting, leftover antivirus software, or a disabled service, and in many cases you can fix it in under 30 minutes.
In this guide, you will learn why Microsoft Defender error 0x800704ec appears and the exact steps to restore Defender safely on Windows 10 or Windows 11.
Why this happens
Microsoft Defender error 0x800704ec usually means Windows has been told not to run Defender. That can happen when a third-party antivirus takes over, when an old antivirus leaves behind drivers or policies after uninstalling, or when a system tweak changes local policy or registry settings.
In some cases, Defender itself is fine, but the Windows Security app cannot start because required services are stopped. Less commonly, malware or aggressive “privacy” tools change settings that disable Microsoft Defender without making it obvious.
Fix it step by step
- Restart your PC and check for another antivirus.
Before changing settings, restart Windows once. Then go to Settings > Apps > Installed apps and look for any antivirus besides Microsoft Defender, such as Norton, McAfee, Avast, AVG, Bitdefender, or Malwarebytes. If another real-time antivirus is installed, Defender may be intentionally disabled. If you want Defender back, uninstall the other antivirus first, then restart your computer. - Remove leftover antivirus components.
If you already uninstalled another antivirus but Microsoft Defender error 0x800704ec remains, leftovers may still be blocking it. Visit the antivirus vendor’s official site and use its dedicated removal tool if one is offered. This often removes hidden drivers and policies that normal uninstallers miss. Restart the PC after the cleanup. - Make sure the Security Center and Defender services are running.
Press Windows + R, type services.msc, and press Enter. Find Security Center and make sure its status is Running. If it is stopped, right-click it and choose Start. Also check Microsoft Defender Antivirus Service if it appears in the list. If either service refuses to start, note the message and continue with the next steps. - Check Local Group Policy if your edition supports it.
Press Windows + R, type gpedit.msc, and press Enter. Go to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus. Open Turn off Microsoft Defender Antivirus. If it is set to Enabled, change it to Not Configured or Disabled, then click Apply. Also check under Real-time Protection that settings are not forcing Defender off. Restart your computer afterward. - Review the registry setting that can disable Defender.
⚠️ Editing the registry incorrectly can cause system problems. Create a restore point first, and only change the exact entry listed below.
Press Windows + R, type regedit, and press Enter. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender. Look for a value named DisableAntiSpyware. If it exists and is set to 1, right-click it and choose Delete, or set its value to 0. Close Registry Editor and restart Windows. On some PCs, this single entry is the direct cause of Microsoft Defender error 0x800704ec. - Repair system files.
Open Command Prompt as administrator and run sfc /scannow. Let it finish fully. Then run DISM /Online /Cleanup-Image /RestoreHealth. These scans can repair damaged Windows components that stop the Windows Security app or Defender services from starting properly. Restart the PC when both scans are complete. - Install pending Windows updates.
Go to Settings > Windows Update and install all available important updates. Microsoft Defender depends on current Windows components, and missed updates can leave the security stack in a broken state. After updating, restart and check whether Windows Security opens normally. - Run a Defender check from Windows Security.
Open Windows Security from the Start menu. Go to Virus & threat protection. If you can now access the page, confirm that real-time protection is on and run a quick scan. If the app opens but settings still switch themselves off, the system may still have a conflict from another security product or a managed policy.
If the problem keeps coming back
If Microsoft Defender error 0x800704ec returns after every restart, the most likely causes are a hidden third-party security component, a work or school management policy, or malware that is reapplying the block. If the computer is owned by your employer, check with your IT department before changing policies. On a personal PC, a deeper cleanup and security review may be needed to remove the root cause rather than just re-enable Defender temporarily.
Frequently asked questions
Can another antivirus cause Microsoft Defender error 0x800704ec?
Yes. Windows often disables Defender when another antivirus with real-time protection is installed. Even after uninstalling that program, leftover drivers or policy entries can continue to block Defender until they are removed.
Is Microsoft Defender error 0x800704ec caused by malware?
Sometimes, but not always. Many cases come from legitimate software conflicts or settings changes. However, if Defender was disabled without your knowledge and you did not install another antivirus, malware is one possible cause and your PC should be checked carefully.
Can I fix error 0x800704ec without editing the registry?
Often, yes. Start with uninstalling conflicting antivirus software, checking services, and reviewing Local Group Policy. Registry edits are only needed when a disabling policy remains in place and other steps do not restore Defender.
Still need help restoring protection? Call 247TechTeam at 888-549-0702 or request a secure remote session for hands-on assistance.
Need a hand with this?
Our technicians can help remotely.
Book a service
Please sign in or create an account to interact with this article.