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)
- Press Win + R, type secpol.msc, hit Enter
- Go to Account Policies → Account Lockout Policy
- Double-click Account lockout threshold
- Set the value to 0 → click OK
Method 2: Command Prompt (Admin)
- Open CMD as Administrator
-
Run: net accounts /lockoutthreshold:0
-
Verify with: net accounts
Method 3: Group Policy (for domain environments)
-
Open gpedit.msc
- Navigate to Computer Configuration → Windows Settings → Security Settings → Account Policies → Account Lockout Policy
- 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