Skip to content
Follow
Windows

How to Change Account Lockout Threshold in Windows 11

Richard
Written by
Richard
Jul 22, 2022 Updated Sep 15, 2026 2 min read
How to Change Account Lockout Threshold in Windows 11
How to Change Account Lockout Threshold in Windows 11

The account lockout threshold in Windows 11 locks your PC after a specific number of failed sign-in attempts to block hackers from guessing your password. Setting this rule to 5, for example, blocks access after five wrong tries.

Advertisement

You can change this number using the Local Security Policy tool (a built-in app for managing advanced security rules) on Windows 11 Pro or Enterprise editions.

⚡ Quick Answer

You change the Windows 11 account lockout threshold using the Local Group Policy Editor (secpol.msc) or Windows Terminal. Navigate to Computer Configuration\Windows Settings \Security Settings\Account Policies\Account Lockout Policy, then double-click Account lockout threshold and enter a number between 1 and 999.

Advertisement

Prerequisites

Modifying these system policies requires administrator access. Standard user accounts lack the permissions necessary to change these system-wide security rules.

How to change the Account Lockout Threshold

Changing the Windows 11 account lockout threshold lets you set how many times someone can type the wrong password before Windows locks the account. You can change this number using the Local Group Policy Editor to protect your computer from guessing attacks. Open the run box by pressing the Win plus R, type gpedit.msc, and press Enter to start.

  1. Open the Local Group Policy Editor by pressing Win+R, typing secpol.msc, and hitting Enter.
Searching for Edit group policy in the Windows 11 menu
windows 11 edit group policy
  1. Navigate to: Computer Configuration\Windows Settings \Security Settings\Account Policies\Account Lockout Policy.
  2. Double-click on Account lockout threshold.
Navigating to Account Lockout Policy settings in Group Policy Editor
windows 11 account lockout threshold change
  1. Enter a number between 1 and 999. Setting this to 0 disables the lockout feature entirely.
  2. Click OK to save.
Setting the account lockout threshold value in Windows 11
windows 11 change account lockout threshold

Change the threshold using Windows Terminal

Command-line execution offers faster results for administrators needing speed.

  1. Open Windows Terminal as an administrator.
Opening Windows Terminal as administrator for account security settings
windows terminal run as administrator
  1. Type the following command and press Enter:
net accounts /lockoutthreshold:<number>

Troubleshooting Locked Accounts

Wait for the account lockout duration to expire, or clear the lock manually. Administrators can also open the Computer Management console to clear a lock. Right-click the affected user, select Properties, and uncheck ‘Account is locked out’.

Advertisement

Security Best Practices

Pairing a lockout threshold of 5-10 attempts with a strong password maximizes protection. Enable multi-factor authentication whenever available. Disabling the threshold completely leaves your system vulnerable to brute-force attacks (automated programs that try thousands of password combinations).

Summary

Lockout thresholds provide a reliable defense against unauthorized login attempts.

Consult the official Microsoft documentation for advanced configuration details.

Most security experts recommend a threshold between 5 and 10 failed attempts. This range blocks automated brute-force attacks (automated scripts attempting rapid password guesses) while preventing lockouts from everyday typos.

Does setting the threshold to 0 disable account lockout?

Setting the account lockout threshold to 0 disables the policy entirely. Windows ignores failed login attempts under this configuration, allowing unlimited password guesses. Network-connected computers face significant security risks with this setting disabled.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Advertisement

📚 Related Tutorials

How to Open PowerShell in Windows 11
Windows How to Open PowerShell in Windows 11
How to Access Command Prompt in Windows 11
Windows How to Access Command Prompt in Windows 11
How to Reset Group Policy Windows 11 to Default
Windows How to Reset Group Policy Windows 11 to Default
How to Disable Command Prompt in Windows 11
Windows How to Disable Command Prompt in Windows 11

4 Comments

Leave a Comment

Your email address will not be published. Required fields are marked *