0X0000052F

Fix 0X0000052F: Logon Failure Due to Account Restrictions

Windows Errors Intermediate 👁 1 views 📅 May 28, 2026

This error hits when Windows blocks a login because of account restrictions like time limits, blank passwords, or disabled accounts. Here's how to fix it fast.

You're trying to log in—maybe RDP into a Windows Server 2019 box, or unlock a workstation after lunch—and you get hit with: "Logon failure: User account restriction" with error code 0X0000052F. I know this error is infuriating because the message is vague. You know your password is right. The account exists. But Windows says no.

This tripped me up the first time I saw it on a domain-joined Windows 10 machine. The user could log in locally but not remotely. The real trigger? A blank password restriction combined with a logon hour rule that I'd forgotten to set. Let's break down what's happening.

Root Cause of 0X0000052F

Windows enforces account restrictions at logon. The error 0X0000052F means one of these restrictions blocked the login attempt. It's not a password mismatch. It's a policy saying, "This account is not allowed to log in right now, here, or this way."

Common triggers:

  • Blank password restriction – Windows won't let you log into a network session (like RDP or file share) with an account that has no password. Local console login is fine. Remote? Nope.
  • Logon hours restriction – In Active Directory, you can set which hours an account is allowed to log on. Outside those hours? You get this error.
  • Account disabled or locked out – The account might be disabled or locked due to too many bad attempts.
  • Workstation restriction – Some accounts are limited to logging in from specific machines only.
  • Smart card required – If the account policy requires smart card logon and you're using a password, this error pops up.

Fix 0X0000052F in 4 Steps

  1. Check if the account has a blank password
    Open Command Prompt as admin on the local machine and run:
    net user %username%
    Look for the line that says "Password". If it says "Blank", that's your culprit. Windows blocks blank password accounts from network logons by default. Solution: set a password.
  2. Review logon hours (domain accounts only)
    Open Active Directory Users and Computers on the domain controller. Find the user, right-click, select Properties. Go to the Account tab, click Logon Hours. If the grid shows red blocks during your login time, that's the restriction. Change the hours to allow access.
  3. Check if the account is disabled or locked
    In the same Account tab, look at the Account Options section. If "Account disabled" is checked, uncheck it. Also check Log On To to ensure the user is allowed from the current workstation.
  4. Verify the local security policy
    On the machine you're logging into, open secpol.msc (Local Security Policy). Go to Security Settings > Local Policies > Security Options. Find "Accounts: Limit local account use of blank passwords to console logon only". Set it to Disabled if you absolutely need remote logins with blank passwords—but I strongly advise against that for security.

Still Getting the Error?

If none of the above works, check the Security Event Log on the target machine. Look for Event ID 4625 with error code 0X0000052F. The event details often list the specific restriction type (like Logon Hours or Restricted Admin Mode).

Also, if this is a managed device with Group Policy, an admin might have applied a restriction you can't override locally. Run gpresult /h gp.html and look for any policy related to logon restrictions.

One more thing: I've seen this error on Windows 11 22H2 when trying to RDP with a local account that has a blank password, even after disabling the blank password policy. The fix was to add the account to the Remote Desktop Users group explicitly. Do that via lusrmgr.msc on the target machine.

This error is almost always a policy problem, not a broken system. Once you know which restriction is blocking you, the fix takes 30 seconds. You've got this.

Was this solution helpful?