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

Learn About Windows Maintenance Tool: Free Tool That Solves the Most Common Windows Problems Easily

Learn About Windows Maintenance Tool: Free Tool That Solves the Most Common Windows Problems Easily

Windows has powerful built-in command line troubleshooting tools. The Windows Maintenance Tool simplifies things by consolidating these tools into one easy-to-use menu.

How to install Windows using WinToHDD without USB or DVD

How to install Windows using WinToHDD without USB or DVD

Installing Windows with WinToHDD is very simple, no need for USB or DVD containing the installation file. You just need to use the ISO file and then WinToHDD will proceed to install Windows.

Instructions for using DISM to fix Windows 11 errors

Instructions for using DISM to fix Windows 11 errors

DISM (Deployment Imaging and Servicing Management) is an important tool along with SFC (System File Checker) to handle many system issues in Windows 11.

Quick guide to fix Inaccessible Boot Device error on Windows

Quick guide to fix Inaccessible Boot Device error on Windows

Inaccessible Boot Device is a blue screen of death (BSOD) error. This error usually occurs on Windows 10 after users use the Reset This PC feature to restore Windows 10 computer to default settings or to refresh (reinstall) Windows 10 without losing files or after upgrading the system to Windows 10.

9 great built-in apps and tools on Windows 11 that you shouldnt miss

9 great built-in apps and tools on Windows 11 that you shouldnt miss

While Windows 11 certainly comes pre-installed with a few useless apps, it also hides some incredibly powerful tools right under your nose.

How to Transfer Free Space from One Partition to Another in Windows 10

How to Transfer Free Space from One Partition to Another in Windows 10

Adding free space from one partition to another is the best way to make full use of hard drive capacity. The extra space in the large partition will not be wasted, and the problem of lack of memory in the smaller drive will also be solved.

20 “tricks” to improve gaming performance on laptops

20 “tricks” to improve gaming performance on laptops

A top-of-the-line gaming laptop will never match the performance of a similarly priced gaming desktop. But that doesn't mean you can't play the latest games on a laptop.

Get Windows Photo Viewer back on Windows 10 to view photos faster, Photos is too slow!

Get Windows Photo Viewer back on Windows 10 to view photos faster, Photos is too slow!

If you don't like Photos on Windows 10 and want to view photos using Windows Photo Viewer on Windows 10, follow this guide to bring Windows Photo Viewer to Windows 10, helping you view photos faster.

8 portable Windows tools you should have on your USB to use anywhere

8 portable Windows tools you should have on your USB to use anywhere

No matter where you are or what computer you're using, you have everything you need to work, troubleshoot, and stay productive.

How to change network name in Windows 11

How to change network name in Windows 11

Changing the name of a Windows network does not affect the configuration and makes it easier to identify the network. There are several ways to change the name of a network on Windows.

How to change Wifi password, change wifi password VNPT, FPT, Tenda, TP-Link, Viettel on computer, phone

How to change Wifi password, change wifi password VNPT, FPT, Tenda, TP-Link, Viettel on computer, phone

Changing your WiFi password to special, complex characters is one way to protect your family's WiFi from being used illegally, affecting your family's WiFi speed.

How to download Windows 11, download official Win 11 ISO from Microsoft

How to download Windows 11, download official Win 11 ISO from Microsoft

Currently, Windows 11 has been officially launched and we can download the official Windows 11 ISO file or Insider Preview version to install.

How to fix mouse pointer disappearing on Windows

How to fix mouse pointer disappearing on Windows

The mouse pointer has disappeared from your Windows device and you're wondering: How do I get the mouse pointer back? Or, the mouse pointer always decides to disappear when you type.

6 Windows File Explorer add-ons that make life easier

6 Windows File Explorer add-ons that make life easier

Windows File Explorer does the job, but only just. No quick previews, clunky cloud access, and tedious batch operations make day-to-day file management more difficult than it needs to be.

How to use Flyby11 to install Windows 11 on an old computer

How to use Flyby11 to install Windows 11 on an old computer

Windows 10 support is coming to an end, and if your computer can't run Windows 11, it's headed for the scrap yard. But there's a clever tool that can get Windows 11 running on your old computer, thanks to a simple hack.