Lỗi Windows phổ biến, từ bug nhỏ tự hết đến BSOD phức tạp. Hôm nay chúng ta giải quyết mã lỗi 0x800704EC – liên quan đến tài khoản Microsoft dùng đăng nhập UWP apps (Windows Defender, Microsoft Store). Lỗi xuất hiện khi bật Defender (icon xám, không phản hồi) hoặc mở Store (không load, báo lỗi).
💡 Mẹo: Chạy công cụ tối ưu PC chuyên dụng để dọn dẹp cài đặt sai, file rác, ứng dụng độc hại và mối đeọa bảo mật gây ra sự cố hệ thống hoặc hiệu suất chậm.
May mắn là lỗi này fix được. Hướng dẫn chi tiết dưới đây.
Cách dùng Microsoft Account trên Windows 10/11
Microsoft Account đồng bộ cài đặt, mật khẩu, theme, browser... trên nhiều thiết bị. Thường cần đăng nhập bằng tài khoản Outlook/Hotmail/Xbox/Skype/Office 365/OneDrive. Nếu chưa có → tạo mới tại màn hình đăng nhập Windows.
- Bên cạnh "No account?" → Create one.
- Điền tên, mật khẩu, email (có sẵn hoặc tạo mới), quốc gia, ngày sinh → Next.
- Nhập mật khẩu Windows hiện tại → Next.
- Tạo PIN (tùy chọn) hoặc Skip.
Sau đó dùng account này đăng nhập UWP apps. Nhiều user báo lỗi 0x800704EC khi truy cập Defender/Store.
Lỗi 0x800704EC là gì?
Thông báo: Can't sign in with a Microsoft account – This program is blocked by group policy. For more information contact your system administrator. (Error Code: 0x8000704ec)
Nghĩa: Chương trình UWP không mở do vấn đề với Microsoft Account dùng để sign-in. Có thể do: vừa đổi mật khẩu chưa cập nhật, máy không kết nối được server Microsoft, Group Policy chặn, antivirus thứ ba xung đột, file hệ thống hỏng.
Nguyên nhân gây lỗi
- Antivirus thứ ba đang chạy → tự tắt Windows Defender để tránh xung đột.
- File hệ thống Windows bị mất/hỏng (cài đặt/gỡ phần mềm/phần cứng không đúng cách).
- Windows Defender bị tắt qua Group Policy Editor.
- Xung đột real-time protection giữa Defender và antivirus thứ ba.
- Malware, shutdown không đúng cách, tấn công phần cứng → hỏng registry/file hệ thống.
Khắc phục lỗi 0x800704EC cho Windows Defender & UWP Apps
Fix 1: Cho phép Microsoft Account trên PC (Group Policy / Registry)
Quả Local Group Policy Editor (gpedit.msc)
- Win+R →
gpedit.msc→ Enter. - Đường dẫn: Computer Configuration → Windows Settings → Security Settings → Local Policies → Security Options.
- Tìm Accounts: Block Microsoft accounts → double-click → chọn This policy is disabled → Apply/OK.
- Lưu ý: Windows Home không có gpedit.msc mặc định, hãy dùng Registry hoặc bật gpedit trước.
Quả Registry Editor (regedit)
- Win+R →
regedit→ Enter. (Backup registry trước). - Đến:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System. - Tìm key NoConnectedUser (giá trị 1 hoặc 3) → double-click → đổi Value data = 0 → OK.
- Restart PC.
Fix 2: Tắt bảo vệ Virus thứ ba (Real-time protection)
Windows chỉ cho 1 real-time protection cùng lúc. Tắt antivirus thứ ba → Defender tự bật.
Vào settings antivirus → tắt Real-time protection. Không cần uninstall.
Fix 3: Gỡ hoàn toàn Antivirus thứ ba
Nếu Fix 2 không được → uninstall hẳn.
- Task Manager → End process của antivirus.
- Control Panel → Uninstall a program → chọn antivirus → Uninstall → làm theo wizard → reboot.
- Một số antivirus (Avast...) có self-defense: phải tắt trong Settings → Troubleshooting → bỏ tick Enable Self-Defense → mới gỡ được.
- Sau gỡ: dùng Removal Tool chính hãng của hãng antivirus đó để dọn sạch file/registry thừa (tìm trên web hãng).
- Quan trọng: Bật ngay Windows Defender sau khi gỡ để không bị trần trúi.
Fix 4: Bật các Windows Service cần thiết cho Defender
Services bị tắt (do malware/glitch) khiến Defender không chạy.
- Win+R →
services.msc→ Enter. - Kiểm tra và Start (nếu chưa chạy) các dịch vụ:
- Windows Defender Advanced Threat Protection Service
- Windows Defender Antivirus Network Inspection Service
- Windows Defender Antivirus Service
- Windows Defender Firewall
- Windows Defender Security Center Service
- Restart PC → test Defender.
Fix 5: Sửa giá trị Registry Key của Windows Defender
- Regedit → đến:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender. - Tìm key DisableAntiSpyware (hoặc DisableAntiVirus) → double-click → Value data = 0 → OK.
- Reboot → check Defender.
Fix 6: Sửa file hệ thống hỏng bằng SFC & DISM
- CMD Admin (Win+X → Command Prompt Admin).
- Chạy DISM trước:
DISM.exe /Online /Cleanup-image /Restorehealth(nếu Windows Update lỗi: dùng source offline). - Sau đó:
sfc /scannow→ đợi 100%. - Kết quả mong muốn: Windows Resource Protection found corrupt files and successfully repaired them → reboot → test Defender.
Fix 7: Bật Defender qua Local Group Policy Editor
- gpedit.msc → Local Computer Policy → Administrative Templates → Windows Components → Windows Defender.
- Double-click Turn Off Windows Defender → chọn Disabled → Apply/OK.
- Reboot.
Nếu đến đây vẫn lỗi → cân nhắc Update Windows hoặc Clean Install.
Khắc phục lỗi 0x800704EC trên Microsoft Store
Cùng mã lỗi nhưng nguyên nhân/giải pháp khác: Store bị chặn bởi Group Policy hoặc bị deregistered.
Fix 1: Registry Method
- Regedit →
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore. - Key RemoveWindowsStore → Value data = 0 (nếu không tồn tại key → tạo mới: New → Key → WindowsStore → New → DWORD 32-bit → RemoveWindowsStore → 0).
- Reboot.
Fix 2: Group Policy Editor
- gpedit.msc → Computer Configuration → Administrative Templates → Windows Components → Store.
- Tìm Turn off the Store application → Settings → chọn Not Configured hoặc Disabled → Apply/OK.
- Nếu bị xám (grayed out) → không sửa được → chỉ dùng Store trên máy cá nhân.
Fix 3: PowerShell Re-register Store
- Start → PowerShell → Run as Administrator → Yes (UAC).
- Chạy lệnh:
Get-AppXPackage -Name Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" -Verbose} - Reboot.
Tóm tắt
Lỗi 0x800704EC trên UWP apps (Defender, Store) fix được bằng: cho phép MS Account (GPO/Registry), tắt/gỡ antivirus thứ ba, bật services Defender, sửa Registry Defender, SFC/DISM, bật Defender qua GPO. Đối với Store: sửa Registry WindowsStore, GPO Store, hoặc re-register qua PowerShell. Tham khảo phần tương ứng với nơi bạn gặp lỗi.