sodcalculator

10 Tech How-To

Windows Defender Error 0x8007139f: Fixes

Guide 10-50824 · Updated · Step by step

Windows Defender error 0x8007139f on Windows 10 means the built-in antivirus cannot start or update because its service is disabled, corrupted, or blocked by another security program. The fix is to re-enable the Windows Defender service, repair the system files, or remove conflicting third-party antivirus software, then restart your PC.

What Causes Error 0x8007139f?

This error typically appears when you try to open Windows Security or run a scan, and the system reports that the app is unavailable. The most common triggers are:

  • Disabled Windows Defender service: The “WinDefend” service is set to manual or disabled, often by a third-party optimizer or after a previous antivirus uninstall.
  • Corrupted system files: A damaged Windows component store can prevent Defender from loading its required files.
  • Conflicting third-party antivirus: An incomplete uninstall of another security suite leaves drivers or services that block Defender.
  • Group Policy or registry changes: A policy that disables Defender, or a registry key that forces it off, can produce this error.
  • Outdated Windows: Missing cumulative updates may leave Defender in a broken state.

How Windows Defender Works

Windows Defender (now called Microsoft Defender Antivirus) runs as a background service called WinDefend. It uses real-time protection, cloud-delivered protection, and periodic scans. The service must be running for the Windows Security app to function. When you open the app, it checks the service status; if the service is stopped or disabled, you get an error like 0x8007139f. The error code itself is a generic Windows error that means “the service cannot be started” — it is not unique to Defender, but it is common when the service is blocked.

How to Fix Error 0x8007139f

Follow these steps in order. Most users resolve the issue with the first two steps.

Step 1: Re-enable the Windows Defender Service

  1. Press Windows + R, type services.msc, and press Enter.
  2. Scroll down to Windows Defender Antivirus Service (or “WinDefend”).
  3. Right-click it and select Properties.
  4. Set the Startup type to Automatic (or Automatic (Delayed Start)).
  5. If the service is stopped, click Start. If it fails to start, note the error and continue to Step 2.
  6. Click Apply, then OK, and restart your PC.

Step 2: Run the System File Checker and DISM

  1. Open Command Prompt as administrator (right-click Start, choose Command Prompt (Admin) or Windows PowerShell (Admin)).
  2. Run sfc /scannow and wait for the scan to finish.
  3. If SFC found errors, run DISM /Online /Cleanup-Image /RestoreHealth and then run SFC again.
  4. Restart your PC and try opening Windows Security.

Step 3: Remove Conflicting Antivirus Software

If you have another antivirus installed, uninstall it using the Control Panel or Settings > Apps. If the uninstall fails or leaves remnants, use the vendor’s dedicated removal tool (available on their official website). After removal, restart and check if Defender starts.

Step 4: Check Group Policy or Registry

If you are on Windows 10 Pro or Enterprise, open gpedit.msc and go to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus. Ensure the policy “Turn off Microsoft Defender Antivirus” is set to Not Configured or Disabled. If you are on Home edition, check the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender — if a value named DisableAntiSpyware exists, set it to 0 or delete it.

Step 5: Install Windows Updates

Go to Settings > Update & Security > Windows Update and check for updates. Install all pending updates, restart, and test again.

Common Problems and Misconceptions

One common misconception is that you need to reinstall Windows to fix this error. That is rarely necessary. Another is that the error means your PC is infected — it does not, it just means Defender cannot run. Also, some users think that disabling Defender permanently is a good idea; this is not recommended because it leaves your system unprotected. If you must use a third-party antivirus, uninstall Defender properly, not by force-disabling its service.

Another issue: if you have a third-party antivirus installed, Windows may automatically disable Defender to avoid conflicts. If you uninstall the third-party tool, Defender should re-enable itself. But if the uninstall was incomplete, you may need to reinstall and then properly uninstall the third-party tool, or use its official cleanup utility.

Comparison: Error 0x8007139f vs Other Defender Errors

Other common Defender errors include 0x800704ec (the service cannot be started, often due to policy), 0x800b0100 (update failure), and 0x800706ba (the RPC server is unavailable). Error 0x8007139f is specifically about the service being blocked or not running. Unlike update errors, this one usually appears when you try to open the Windows Security app or run a manual scan. The fix is similar for all service-related errors: re-enable the service and repair system files.

When to Consider a Third-Party Antivirus

If you repeatedly get this error and cannot fix it, you may consider using a third-party antivirus. However, the error itself does not mean Defender is permanently broken — it is almost always fixable with the steps above. If you do switch, download the new antivirus from the official vendor site, uninstall Defender properly (or let the new antivirus disable it), and ensure the new software is up to date. Keep in mind that running two antivirus programs at the same time can cause performance issues and conflicts.

Safety and Prevention Tips

  • Always keep Windows Update enabled so Defender receives definition updates.
  • Do not use “optimizer” tools that disable Windows services without your knowledge.
  • If you uninstall a third-party antivirus, restart your PC immediately after.
  • Periodically check the Windows Security app to confirm real-time protection is on.

Frequently Asked Questions

Will I lose my files if I run SFC or DISM?

No. SFC and DISM only repair system files; they do not touch your personal files. However, it is always wise to back up important data before running system repairs.

Can I fix this error with a system restore?

Yes, if you have a restore point from before the error started, you can use System Restore to revert system settings and files. Go to Control Panel > Recovery > Open System Restore and choose a point. This will not affect your personal files.

Why does Defender keep turning off after I restart?

This usually indicates a policy or registry setting that disables Defender, or a third-party security tool that re-disables it. Check the Group Policy and registry as described in Step 4, and ensure no other antivirus is installed.

Is it safe to use a third-party antivirus instead of fixing Defender?

Yes, it is safe as long as you use a reputable antivirus and keep it updated. But the error 0x8007139f is not a reason to abandon Defender — it is fixable. If you do switch, uninstall the third-party tool properly if you later decide to go back.

Does this error mean my PC is already infected?

No. The error only indicates that Defender cannot start. It does not confirm an infection. However, if you suspect malware, you can boot into Safe Mode and run a scan with a portable scanner or use Windows Defender Offline if available.

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 →