How to limit the number of failed login attempts on Windows 10

Limiting the number of incorrect password login attempts in Windows 10 helps increase computer security. Here's how to limit the number of failed login attempts on Windows 10 .

How to limit the number of failed login attempts on Windows 10

Why should you set a limit on the number of failed computer login attempts?

If someone wants to access your computer, they can guess the device login password. This is really a threat to your data security "fence", especially when they break the password. To protect yourself against this threat, you can limit the number of times you log in with the wrong password to your PC. You can configure this setting via Local Group Policy Editor or Control Panel.

Limit the number of failed PC logon attempts via Local Group Policy Editor

If your PC runs Windows 10 Home Edition, first you need to learn how to access Group Policy Editor in Windows Home. On the other hand, for all Windows 10 versions, here's how to limit the number of incorrect PC login password attempts using Local Group Policy Editor:

  1. Press Windows + R key , type gpedit.msc > Enter to open Local Group Policy Editor .
  2. In the left navigation panel, go to Computer Configuration > Windows Settings > Security Settings > Account Policies > Account Lockout Policy .
  3. Click the Account Lockout Policy key . You will see the following 3 settings in the right-hand panel: Account lockout duration , Account lockout threshold and Reset account lockout counter after .

How to limit the number of failed login attempts on Windows 10

Setting the Account lockout threshold policy allows you to limit the number of failed computer logon attempts. That person will not have access to the locked account until you reset it or the account lock period expires.

To configure Account lockout threshold , you need to set a value from 1-999. This number will determine the number of incorrect password attempts allowed on the PC before locking the account. Setting the value to 0 will not lock the account no matter how many times someone enters the wrong PC login password.

  1. To configure this setting, double-click the Account lockout threshold policy setting .
  2. Select the desired account lock out level value in Account will lock out after .
  3. Click Apply > OK .

How to limit the number of failed login attempts on Windows 10

The Reset account lockout counter after policy setting helps you decide the number of minutes that pass before locking your account. However, you need to determine the threshold or number of failed login attempts to be locked first.

For example, you can set Account lockout threshold to 5 and Reset account lockout counter after to 5 minutes. Thus, the user has 5 attempts to log in with the wrong password within 5 minutes before the account is locked. You can choose between 1 and 99,999 minutes when configuring the Reset account lockout counter after policy setting .

  1. To configure this setting, double-click Reset account lockout counter after .
  2. Select the desired account lockout timer value at Reset account lockout counter after .
  3. Click Apply > OK .

How to limit the number of failed login attempts on Windows 10

The Account lockout duration policy setting determines how long an account lockout remains before it is automatically unlocked. Similar to Reset account lockout counter , this setting requires you to select the Account lockout threshold value first.

For example, you can set Account lockout threshold to 5 and Account lockout duration to 5 minutes.

If someone enters the wrong password 5 times, your account will be locked for 5 minutes before it is automatically unlocked by the system. Depending on how long you want to lock your account, you can choose a value from 1 to 99,999 minutes. Additionally, you can select 0 if you want to lock your account until you unlock it yourself.

  1. To configure this setting, double-click Account lockout duration .
  2. Select the desired lock time in Account is locked out for .
  3. Click Apply > OK .

How to limit the number of failed login attempts on Windows 10

Once completed, close Local Group Policy Editor and restart your PC to save the changes.

Limit the number of failed login attempts via Command Prompt

Open Command Prompt as follows:

  1. Press Windows key + R and type CMD .
  2. Click Ctrl + Shift + Enter to open an advanced Command Prompt .

To configure Account lockout threshold , enter the following command into Command Prompt:

net accounts /lockoutthreshold:5

How to limit the number of failed login attempts on Windows 10

You can replace the value 5 in Command Prompt with any value from 1 to 999. This number will determine the number of failed PC login attempts allowed.

The account will automatically be locked if the user enters the wrong password and the number of times exceeds the allowed threshold. Alternatively, you can select 0 if you do not want to set an account lockout limit. Click Enter after selecting the value.

To configure Reset account lockout counter , type the following command into Command Prompt:

net accounts /lockoutwindow:5

How to limit the number of failed login attempts on Windows 10

You can replace the value 5 with another number (from 1 to 99,999). This will determine the number of minutes before account lockout. Click Enter after selecting the value.

To configure Account lockout duration , enter the following command into Command Prompt:

net accounts /lockoutduration:5

How to limit the number of failed login attempts on Windows 10

You can also replace 5 with another number, corresponding to the time the account is locked before being automatically reopened. If you select 0 , the account will only open when you manually unlock it. Click Enter after selecting a value.

Once completed, close Command Prompt and restart your PC to save changes.

Above is how to limit the number of times you log in with an incorrect password to your PC to increase computer security. Hope the article is useful to you.

Sign up and earn $1000 a day ⋙

Leave a Comment

How to block application installation on non-system drives Windows 11

How to block application installation on non-system drives Windows 11

If you want to block application installation on drives other than the system drive, you can disable this feature via Group Policy or Registry Editor.

How to check application version installed on Windows 11

How to check application version installed on Windows 11

Although updates are installed automatically, sometimes you may need to check the version of an application on Windows.

4 ways to quickly open the network connection tool on Windows

4 ways to quickly open the network connection tool on Windows

Whether you're a casual Windows user or a professional technician, knowing how to quickly open Network Connections will help you manage your network more efficiently.

How to Use Clipboard History in Windows 10

How to Use Clipboard History in Windows 10

Windows clipboard history got a major overhaul with the Windows 10 October update.

5 ways to turn off Windows 11 Update, stop updating Win 11

5 ways to turn off Windows 11 Update, stop updating Win 11

In this article, WebTech360 will guide you how to turn off Windows Update on Windows 11 operating system.

How to fix missing Language bar on Windows 10

How to fix missing Language bar on Windows 10

Language bar disappeared on Windows 10? Follow these solutions.

4 Tips to Get the Most Out of the Windows Clipboard

4 Tips to Get the Most Out of the Windows Clipboard

From pinning frequent items to syncing them across multiple devices, here are four great tips that will help you get the most out of the Windows Clipboard.

Microsoft is bringing annoying Windows 11 Start menu ads to Windows 10

Microsoft is bringing annoying Windows 11 Start menu ads to Windows 10

Microsoft continues to announce plans to add new features to Windows 10, despite the fact that the operating system will inevitably die in October 2025.

How to fix Operating system not found error on Windows

How to fix Operating system not found error on Windows

Of all the errors, glitches, and problems you can encounter while using Windows 10, a few messages can leave you feeling truly terrified, such as the Operating system not found screen.

How to Get Rid of Ads on Windows 11 Devices

How to Get Rid of Ads on Windows 11 Devices

Microsoft allows users to disable ads from Windows 11, but the process isn't straightforward. Here are different ways to remove ads from your Windows 11 device.

How to hide phone notification icons in Windows 11 Start menu

How to hide phone notification icons in Windows 11 Start menu

The Phone Link app on Windows lets you link your phone and PC. And you can check your device's battery and connection status,... right from the Start menu.

Invite to download Dynamic wallpaper pack designed for Windows 11 but canceled at the last minute

Invite to download Dynamic wallpaper pack designed for Windows 11 but canceled at the last minute

Besides elements like new interface and features, another aspect, although small, also receives a lot of attention on Windows: wallpaper packs designed and introduced by Microsoft for special occasions.

Microsoft stops supporting Windows Remote Desktop app, moves to new Windows app

Microsoft stops supporting Windows Remote Desktop app, moves to new Windows app

Microsoft has made an important announcement for customers using the Remote Desktop for Windows app from the Microsoft Store. On May 27, 2025, this app will be officially discontinued and removed from the Microsoft Store.

How to Control and Customize Notifications in Windows 11

How to Control and Customize Notifications in Windows 11

With a constant stream of notifications and alerts on your Windows 11 laptop, staying focused becomes a challenge. So take control and customize your notifications to suit your needs.

Windows 12: Expected price, release date, specs, and more rumors

Windows 12: Expected price, release date, specs, and more rumors

Windows 12 is a potential future update to the Windows operating system. It is expected to be released in 2024, although there has been no official confirmation from Microsoft yet.