All Systems Operational - No current issues or scheduled maintenance

Fixing Remote Desktop Login Error Due to Lockout Policy Print

  • windows, remote desktop
  • 1

Here's a summary of how to disable the "Too Many Logon Attempts" (Account Lockout) feature on Windows:

Method 1: Local Security Policy (Recommended — Pro/Enterprise/Education only)

  1. Press Win + R, type secpol.msc, hit Enter
  2. Go to Account Policies → Account Lockout Policy
  3. Double-click Account lockout threshold
  4. Set the value to 0 → click OK

Method 2: Command Prompt (Admin)

  1. Open CMD as Administrator
  2. Run: net accounts /lockoutthreshold:0
  3. Verify with: net accounts

Method 3: Group Policy (for domain environments)

  1. Open gpedit.msc
  2. Navigate to Computer Configuration → Windows Settings → Security Settings → Account Policies → Account Lockout Policy
  3. Set Account lockout threshold to 0

To unlock an already-locked account immediately: Run in Admin CMD: net user [username] /active:yes


Key point: Setting the threshold to 0 completely disables lockout. If you'd rather just increase the allowed attempts instead of disabling it entirely, set the threshold to a higher number (e.g. 10).


PreVPS


Was this answer helpful?

« Back