Error code 0x800704ec can prevent you from accessing Microsoft Defender or Microsoft Store. In this post, we explain the possible causes and provide several effective methods to fix this error in Windows 11/10.

Quick Answer

Error code 0x800704ec indicates that an app is blocked by Group Policy, which usually occurs when opening Windows Defender or Microsoft Store.

To quickly fix this issue, uninstall the third-party antivirus software like Avast or McAfee, modify Group Policy settings, and edit the Windows registry.

About Error Code 0x800704ec

Error code 0x800704ec is a Windows error that indicates an application is blocked by group policy.

Some users experience the error when they attempt to open Windows Defender. Other users run into the error when they launch the Microsoft Store app and try to install their favorite programs. Here is the error message:

This program is blocked by group policy. For more information, contact your system administrator. (Error Code: 0x800704ec)

The prompted window of Windows Defender with error code 0x800704ec.

Have you also encountered the same error on your computer? If so, continue reading to get the reasons and solutions to this error.

Causes of Error Code 0x800704ec

The following table outlines some common causes:

CauseDescription
Group Policy restrictionsWindows Defender or Microsoft Store is disabled.
Third-party antivirus conflictsAnother security program like Avast or McAfee prevents Windows Security (Defender) from running.
Registry misconfigurationDefender-related keys are changed incorrectly.
Work/school account policiesAn administrator may block certain applications through group policies.
Disabled Windows Defender servicesRequired Defender services are stopped or disabled.
Corrupted system filesWindows components fail to work properly.

How to Fix Error Code 0x800704ec on Windows 10/11

To fix error code 0x800704ec, temporarily uninstall antivirus software, modify the Windows registry, check for Group Policy conflicts, restart essential services, and perform SFC and DISM commands.

Solution 1. Temporarily Uninstall Other Antivirus Software

Third-party antivirus software such as Avast, Malwarebytes, Norton, or McAfee may conflict with Windows Security and result in the error. In this case, try temporarily uninstalling other antivirus software to fix the error.

Here’s the guide:

Step 1. Press Win + S to open the Search window, type “control panel” and press Enter.

Step 2. In the Control Panel window, set View by to Large icons, and select Programs and Features.

All Control Panel Items page with selected Program and Features.

Step 3. Now, choose the antivirus software from the app list, right-click it, and select Uninstall.

Step 4. Follow any prompts or on-screen instructions to complete the removal process.

Solution 2. Enable the Windows Defender Services

If Windows Defender services on your computer are disabled, it’s easy for you to run into Windows Defender error 0x800704ec. In this circumstance, enable the services related to Windows Defender to fix the error. Here are the detailed steps:

Step 1. Open Run, type “services.msc” and press Enter.

Step 2. Check the Windows Defender services in the Services list to see if they are running.

  • Windows Defender Advanced Threat Protection Service
  • Windows Defender Firewall
  • Security Center
  • Microsoft Defender Antivirus Network Inspection Service
  • Microsoft Defender Antivirus Service
Services window with selected Windows Defender Advanced Threat Protection Service and Windows Defender Firewall.

Step 3. If the Status column doesn’t say “Running”, just right-click the service and choose Start to enable it.

Step 4. Once done, restart your PC and check if the error is fixed.

Solution 3. Check for Group Policy Conflicts

If Windows Defender or Microsoft Store’s group policy blocks access, you may encounter error code 0x800704ec. In this circumstance, try checking for Group Policy conflicts to fix the error. Here are the steps:

Step 1. Open Run, type “gpedit.msc” and press Enter.

Step 2. In the prompted Local Group Policy Editor window, go to the following path:

  • If Windows Defender is unable to turn on: Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus
  • If Microsoft Store is blocked: Computer Configuration > Administrative Templates >Windows Components > Store

Step 3. In the right panel, find Turn off Microsoft Defender Antivirus or Turn off the Store application and double-click it.

Local Group Policy Editor with selected Turn off Microsoft Defender Antivirus.

Step 4. Select Not Configured, click Apply, and then OK. Or, do the same change in the Turn off the Store application window.

The Turn off Microsoft Defender Antivirus window with selected Not Configured, Apply, and OK.

Step 5. Once done, restart your system and open Windows Security to check if the error is solved.

Solution 4. Modify the Windows Registry

Improper registry settings can trigger Intune 0x800704ec as well. In this situation, try to modify the Windows registry to troubleshoot the error. Here’s how to do that:

Note:
The registry is a crucial database for your operating system, and a bad edit can break your system. Therefore, it is highly recommended to back up the Windows registry before making any modifications.

Step 1. Press Win + R to open Run, type “regedit” and press Enter. If a UAC window pops up, click Yes to continue.

Step 2. Navigate to this path:

  • For Microsoft Store: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore
  • For Windows Defender: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

Step 3. Delete the related entry if it exists.

  • Delete the key RemoveWindowsStore or set its value to 0 (for Store issues).
  • Delete DisableAntiSpyware or DisableRealtimeMonitoring, or similar keys (for Defender issues).

Step 4. Restart the computer and check if the error has been resolved.

Solution 5. Create a New Local Admin Account

Some people report that they fix the Intune 0x800704ec error successfully by creating a new local admin account. If you want to have a try, please do as follows:

Step 1. Press Win + I to open Settings.

Step 2. Go to Accounts > Family & other users.

Step 3. Under the Other users section, click Add someone else to this PC and follow the on-screen guide to create a new local user account.

The interface of Settings with selected Family and other users and Add someone else to this PC.

Step 4. Sign in with the new account and check if the issue persists.

Solution 6. Remove Work or School Accounts

If the “this program is blocked by group policy 0x800704ec” error is occurring on a work or school computer, a system administrator may have blocked certain applications through a policy. In this case, you need to contact the administrator for assistance.

Additionally, if you are using a work or school account on a personal device and encounter this error, try removing work or school accounts to fix the error. Here’s the tutorial:

  1. Open Settings.
  2. Navigate to Accounts > Access work or school.
  3. If a work or school email address is listed, select and disconnect it.
  4. Add it back within the specific app if needed.

Solution 7. Reset the Microsoft Store

If you encounter the Microsoft Store error code 0x800704ec on Windows 10/11, try resetting the Microsoft Store to solve the error. Here are the detailed steps:

  1. Open Run.
  2. Type “wsreset.exe” and press Enter.
  3. Wait for Command Prompt to reset the cache and close automatically.
  4. Check if the Microsoft Store opens properly.

Solution 8. Run SFC and DISM

Corrupted system files may also cause Windows error code 0x800704ec. If you suspect the error on your PC is caused by this reason, try running the SFC and DISM commands to fix the error. Here’s the guide:

Step 1. Open the Search window, type “cmd” in the search box. Then, right-click Command Prompt under Best match and select Run as administrator.

Step 2. In the elevated Command Prompt window, type “sfc /scannow” and press Enter.

Command Prompt window with SFC command.

Step 3. Once done, restart your computer and start Windows Defender again. If the Windows Defender error persists, run DISM commands:

Solution 9. Reinstall Microsoft Store (If Necessary)

If none of the above solutions can help you fix error code 0x800704ec in Microsoft Store, try reinstalling Microsoft Store by performing commands in PowerShell. Here are the detailed steps for reinstalling the Microsoft Store:

Step 1. Press Win + X to open the Quick Link menu and select Windows PowerShell (Admin).

Step 2. Run the command to remove the Microsoft Store:

Get-AppxPackage *Microsoft.Store* | Remove-AppxPackage

Step 3. Run the following command to reinstall the Microsoft Store:

Get-AppxPackage -allusers Microsoft.Store | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

Step 4. Restart your computer and check if the error has been resolved.

Back Up Data to Avoid Data Loss

If none of the above methods fix the 0x800704ec error and Windows Security remains blocked, your system files or user profile may be severely corrupted. In this case, performing a Windows reset can be a last resort.

Tips:
The resetting process can erase your installed applications, settings, and personal files depending on the reset option you choose.

To prevent data loss, create a full backup of your important files before proceeding. You can utilize a professional PC backup software like MiniTool ShadowMaker. It allows you to quickly and safely back up your data to an external drive or USB flash drive.

Step 1. Download and install MiniTool ShadowMaker on your computer. Then, launch it to enter the main interface.

MiniTool ShadowMaker TrialClick to Download100%Clean & Safe

Step 2. Select Backup from the left panel. Then, go to SOURCE and select Folders and Files.

The interface of MiniTool ShadowMaker with selected Backup and Folders and Files.

Step 3. Check the files that you want to back up and click OK.

Step 4. Go to DESTINATION and choose a safe location to store the backup files.

Step 5. Click Back Up Now and OK sequentially to execute the operation.

The interface of MiniTool ShadowMaker with selected Back Up Now and OK.

Step 6. Once the process is complete, the data backup is successful.

After data is backed up, reset your PC by navigating to Settings > System > Recovery > Reset this PC (in Windows 11).

Bonus Tip: How to Fix Can’t Sign in with a Microsoft Account with Error Code 0x800704ec

Some people report that they receive the error message “can’t sign in with Microsoft account 0x800704ec.” This occurs when they attempt to sign in with a Microsoft account on UWP apps on Windows 11/10.

The Can’t sign in with Microsoft account window with selected error code 0x800704ec.

This error has the same error code as above, but is a little different in solutions.

If you encounter the same error, try configuring Local Group Policy and Registry Editor. Here’s how to do that:

# 1. Configure Local Group Policy Editor

Step 1. Open Group Policy Editor.

Step 2. Navigate to the path: Computer Configuration > Windows Settings > Security Settings > Local Polices > Security Options.

Step 3. On the right panel, find and double-click Accounts: Block Microsoft accounts.

Local Group Policy Editor with highlighted Accounts Block Microsoft accounts policy.

Step 4. Under the Local Security Setting tab, drop down the menu and select This policy is disabled.

Account Block Microsoft accounts Properties window with selected This policy is disabled.

Step 5. Click Apply and Yes to save the changes.

Once done, exit Group Policy Editor and check if the error is fixed.

# 2. Edit Windows Registry Editor

Step 1. Open Registry Editor on your computer.

Step 2. Navigate to this path:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

Step 3. Find the NoConnectedUser key. Then, double-click it and input 0 in the Value data box and click OK to save the change.

If you don’t find the NoConnectedUser key here, you should create one. Here’s the way:

  1. Right-click the empty space in the right-hand pane.
  2. Select New > DWORD (32-bit) Value.
  3. Name the new DWORD as NoConnectedUser and press Enter.
  4. Double-click the new NoConnectedUser key and set its Value data to 0.
  5. Click OK and close Registry Editor.
  6. Restart your computer for the changes to take effect.

How to fix the error code 0x800704ec? This post analyzes the possible causes of the error and offers some useful solutions.Click to Tweet

Final Words

In this post, we introduce the potential causes and effective solutions for error code 0x800704ec. Try the mentioned solutions above to fix the error on your own.

To back up data and avoid data loss, we highly recommend MiniTool ShadowMaker. If you have suggestions or problems with this software, please contact us by sending an email to [email protected].

Error Code 0x800704ec FAQ

1. How do I repair the Microsoft Store?
To repair the Microsoft Store, you should start by resetting its cache with wsreset.exe. If this does not work, run the Windows Store Apps troubleshooter, update Windows, and use PowerShell to reinstall the store.
2. How do I fix Windows 11 update error 0x80070005?
To fix Windows 11 update error 0x80070005, run the Windows Update troubleshooter, restart Windows update-related services, and run SFC and DISM. For persistent issues, use the Media Creation Tool to perform a clean installation.
3. How do I fix error code 0x80070490?
To fix error code 0x80070490, run the Windows Update troubleshooter, and then perform SFC and DISM commands. If this issue persists, restart the Windows Update service or address the corrupted user profile.
4. Is it safe to reset the Microsoft Store?
Yes, it is safe to reset the Microsoft Store. It will not affect your installed apps or purchases, but it clears its cache and restores it to a default state to fix common issues like apps not downloading.
5. How do I clear my Microsoft cache?
To clear the Microsoft cache, use the WS reset command for the Microsoft Store, go to the browser settings to clear the Microsoft Edge cache, and find the “Delete cached files” option in the “Save” settings within individual Office applications like Word.
  • linkedin
  • reddit