Limiting the Number of Login Attempts

Written by Barry Dysert (last updated September 11, 2017)

As a security measure, you may want to limit the number of login attempts that can be made on your system. This is so that someone trying to break into your system by continually trying random passwords will end up locking the account for a certain period of time.

Assuming you have administrative privileges, you can establish the parameters for the lockout. To do this, go to Search | Administrative Tools | Local Security Policy (in Windows 7) or click Start and type (without quotes) "local security" and press Enter (in Windows 10). (See Figure 1.)

Figure 1. Local Security Policy main screen.

On the left of the dialog box, expand the "Account Policies" node and then click on "Account Lockout Policy." (See Figure 2.)

Figure 2. Accessing the Account Lockout Policy parameters.

In the right pane, you'll see that there are three lockout-related parameters that you can adjust. (You adjust them by double-clicking the Policy name and specifying the desired value.) The Account Lockout Duration setting denotes how long the account will stay locked once it becomes locked. You can specify a number anywhere between 0 and 99999 minutes. If set to 0, the account will remain locked until explicitly unlocked.

The Account Lockout Threshold setting denotes how many consecutive failed login attempts can occur before the account is locked. You can specify a number anywhere between 0 and 999. If set to 0, the account will never be locked out.

The Reset Account Lockout Counter After setting denotes the amount of time it will take before a locked-out account is automatically unlocked. You can specify a number between 1 and 99999 minutes. If an Account Lockout Threshold is defined, this reset time must be less than or equal to the Account Lockout Duration setting.

After you've made whatever changes you want to the lockout parameters, OK your way out. The settings go into effect immediately.

 This tip (13087) applies to Windows 7 and 10.

Author Bio

Barry Dysert

Barry has been a computer professional for over 35 years, working in different positions such as technical team leader, project manager, and software developer. He is currently a software engineer with an emphasis on developing custom applications under Microsoft Windows. When not working with Windows or writing Tips, Barry is an amateur writer. His first non-fiction book is titled "A Chronological Commentary of Revelation." ...

MORE FROM BARRY

Removing a Place from the Recent Places or Quick Access Lists

Some Windows features can be both time savers and privacy concerns at the same time. The Recent Places list and the Quick ...

Discover More

Cathy

Cathy is a small utility that lets you catalog network and external media for fast searching. It's handy if you have a ...

Discover More

Using Batch Files, Part 2

This tip is part of a series that talks about Windows batch files. It introduces a few more commands and special ...

Discover More
More WindowsTips

Changing User Permissions for an Entire Drive

All objects on your computer (e.g., disk drives) have permissions that allow or deny various types of access. This tip ...

Discover More

Modifying How Windows Notifies You of Impending Changes

Part of the security system built into Windows involves notifying you when changes are about to occur to your system. ...

Discover More

Understanding Action Center

Action Center provides you with a quick overview of security and maintenance issues and allows you to drill down to the ...

Discover More
Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is six minus 4?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


Newest Tips