Windows Integration Errors

Fix Microsoft Account Sign-In Blocked by Group Policy (Error 0x800704EC)

Huma Ashraf ChHuma Ashraf Ch Oct 10, 2026 870 views

Question details

The user is unable to sign into Microsoft 365 and OneDrive because the program is blocked by Windows Group Policy, displaying error code 0x800704EC.

How to Fix Microsoft Account Sign-In Blocked by Group Policy (Error 0x800704EC)
Product
Microsoft 365 and OneDrive
Device & OS
Windows
Scenario
Attempting to sign in to a Microsoft account within Microsoft 365 applications or the OneDrive desktop client.
Observed behavior
The sign-in process fails immediately, showing a prompt that the program is blocked by Group Policy alongside error code 0x800704EC.
Before you start

Before modifying Windows registry policies, ensure you create a system restore point and back up your registry, as incorrect changes can cause system instability.

Solution 1Recommended

Remove Obsolete Microsoft Policy Entries via Command Prompt

Use Command Prompt with administrator privileges to safely delete restrictive registry policy keys that are blocking your Microsoft account access.

Error 0x800704EC is typically caused by local Group Policy settings or residual registry keys restricting access to Microsoft services. Removing these specific policy keys will force Windows to reset them to default, clearing the blockage.

1
Run Command Prompt as Administrator

Click the Windows Search bar, type cmd, right-click on 'Command Prompt' from the results, and select 'Run as administrator'.

2
Execute Registry Delete Commands

In the Command Prompt window, carefully type 'reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f' and press Enter to execute it.

3
Delete Additional Policy Keys

Continue running the delete command for other conflicting paths, such as 'reg delete "HKLM\Software\Policies" /f' and 'reg delete "HKLM\Software\Microsoft\Policies" /f'.

4
Restart Your Computer

Close the Command Prompt and restart your Windows PC to apply the registry changes, then attempt to sign in to Microsoft 365 or OneDrive again.

Remove Obsolete Microsoft Policy Entries via Command Prompt
Work Environment Notice: If you are using a company-managed computer, contact your IT administrator before deleting group policies, as these restrictions may have been intentionally set by your organization's security team.
Free Microsoft Office alternative

Switch to WPS Office for a Hassle-Free Experience

If Microsoft 365 sign-in issues and Group Policy errors continue to disrupt your workflow, consider switching to WPS Office. It provides a lightweight, highly compatible, and free alternative that does not rely on complex Windows registry policies to function properly.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button for Windows.
  2. 2. Install WPS Office: Run the downloaded installation file and follow the simple on-screen instructions to set up the software.
  3. 3. Open Your Files Seamlessly: Launch WPS Office and directly open your existing Microsoft documents without any formatting loss or sign-in blocks.
Fully compatible with all Microsoft Office file formats, including .docx, .xlsx, and .pptx.Free to use with a familiar, easy-to-navigate user interface that requires no learning curve.Lightweight installation that avoids complex Windows Group Policy and registry dependencies.Built-in PDF editing tools and seamless cloud collaboration.
microsoft office alternative - wps office

Frequently Asked Questions

What causes error code 0x800704EC in Windows?

This error occurs when Windows Group Policy settings or specific registry restrictions prevent certain applications from running or accessing Microsoft account sign-in servers.

Do I need administrative rights to fix this Group Policy error?

Yes, modifying registry keys or running command prompt solutions requires local administrator privileges on your Windows computer.

Will deleting these registry keys harm my computer?

Deleting the specific policy keys mentioned resets them to default, which generally fixes account access issues safely. However, incorrectly deleting other system keys can cause damage, so backing up the registry first is strongly recommended.