TipsMake
Newest

How to limit the number of failed login attempts on Windows

Windows 11 will lock your account if someone enters the wrong password or PIN 10 times in a row. Reducing the number of failed login attempts is also simple. You can set the value from 1 to 999 failed login attempts, or set it to 0 to remove the account lockout threshold. Below are instructions on how to change the number of failed login attempts in Windows 11.

 

Change the number of failed Windows login attempts via Group Policy Editor.

Step 1:

Open the Local Group Policy Editor, then navigate to the following path.

Computer Configuration > Windows Settings > Security Settings > Account Policies > Account Lockout Policy

How to limit the number of failed login attempts on Windows Picture 1

Step 2:

Look to the side and double-click Account Lockout threshold .

 

How to limit the number of failed login attempts on Windows Picture 2

In the new interface, select Local Security Settings. Under Account will lock out after , set the number of invalid login attempts . After completing this, click Apply.

How to limit the number of failed login attempts on Windows Picture 3

Change the number of failed Windows login attempts via Command Prompt.

Step 1:

We open Command Prompt and then enter the command below.

net accounts

How to limit the number of failed login attempts on Windows Picture 4

This section will list many details. You need to check the number of incorrect entries and the device will be locked at the Lockout threshold .

 

How to limit the number of failed login attempts on Windows Picture 5

Step 2:

To change the number of incorrect key entries that will lock the computer, enter the following command and press Enter.

net accounts /lockoutthreshold:

Replace with the number you want to set. You can set a number from 0 to 999. 0 means the account will never be locked if the wrong number is entered.

How to limit the number of failed login attempts on Windows Picture 6

How do I change the account lockout period?

The account lockout time is set to 30 minutes by default, but you can easily change it by following these steps.

We access the Local Group Policy Editor using the link below.

Computer Configuration > Windows Settings > Security Settings > Account Policies > Account Lockout Policy

Then double-click on Account lockout duration as shown below.

How to limit the number of failed login attempts on Windows Picture 7

Enter the number of minutes you want to change the computer lock time.

How to limit the number of failed login attempts on Windows Picture 8

Discover more
Isabella Humphrey
Share by Isabella Humphrey
Update 14 March 2026