Fix Microsoft Account Sign-In Blocked by Group Policy (Error 0x800704EC)
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.

- 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 modifying Windows registry policies, ensure you create a system restore point and back up your registry, as incorrect changes can cause system instability.
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.
Click the Windows Search bar, type cmd, right-click on 'Command Prompt' from the results, and select 'Run as administrator'.
In the Command Prompt window, carefully type 'reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f' and press Enter to execute it.
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'.
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.

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. Download the Installer: Visit the official WPS Office website and click the free download button for Windows.
- 2. Install WPS Office: Run the downloaded installation file and follow the simple on-screen instructions to set up the software.
- 3. Open Your Files Seamlessly: Launch WPS Office and directly open your existing Microsoft documents without any formatting loss or sign-in blocks.

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.




