Windows

How to Change Account Lockout Threshold in Windows 11

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

Windows 11 includes a security feature called the Account lockout threshold. This feature locks your computer account after a certain number of failed password attempts. It is designed to stop hackers from guessing your password through brute-force attacks.

Why use this setting?

By default, Windows locks an account after 10 failed login attempts. This protects your data if someone tries to guess your password repeatedly. You can change this number to make your computer more or less strict.

What happens when done?

Once you save your changes, Windows will track how many times a user enters the wrong password. If they hit your chosen limit, the account will lock for a set period of time.

How to change the Account Lockout Threshold

You can adjust this setting using the Group Policy Editor. Note: This requires admin privileges.

  1. Open Local Group Policy Editor by searching for “Edit group policy” in your Start menu.
Searching for Edit group policy in the Windows 11 menu

  1. In the left sidebar, follow this path: Computer Configuration > Windows Settings > Security Settings > Account Lockout Policy.
  2. On the right side, double-click on Account lockout threshold.
Navigating to Account Lockout Policy settings in Group Policy Editor

  1. Enter the number of failed attempts you want to allow before the account locks.
  2. Click OK and close the window.
Setting the account lockout threshold value in Windows 11

Change the threshold using Windows Terminal

You can also use the command line. Note: This requires admin privileges.

  1. Open Windows Terminal as an administrator by choosing Windows PowerShell or Command Prompt.
Opening Windows Terminal as administrator for account security settings

  1. Type the following command and press Enter:
💻Code
net accounts /lockoutthreshold:<number>

Replace <number> with your preferred amount of failed attempts.

Summary

The Account lockout threshold is a security tool that prevents unauthorized access by locking accounts after failed login attempts. You can easily manage this setting through the Local Group Policy Editor or by using a simple command in the Windows Terminal. Adjusting this helps you balance your own convenience with the security of your computer.

Was this guide helpful?

Tags: #Windows 11
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.

2473 articles → Twitter

📚 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 Disable Command Prompt in Windows 11
Windows How to Disable Command Prompt in Windows 11
How to Set Windows Terminal to Open with Command Prompt on Windows 11
Windows How to Set Windows Terminal to Open with Command Prompt on Windows 11

4 responses to “How to Change Account Lockout Threshold in Windows 11”

  1. For all 3 parameters via command line:
    net accounts /lockoutthreshold:15 /lockoutduration:15 /lockoutwindow:10

Leave a Reply

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