Table of Contents
Way 1: Limit the number of failed logon attempts through Local Security Policy
Way 2: Limit the number of failed logon attempts with Command Prompt
Home System Tutorial Windows Series Limit the Number of Failed Logon Attempts in Windows 10

Limit the Number of Failed Logon Attempts in Windows 10

Aug 02, 2024 am 06:38 AM

Usually, we set user login password on Windows 10 to prevent others from getting into the computer. However, even if a user login password is set, your computer might still be hacked through password-guessing attack. To prevent or reduce the risk of someone hacking into your computer, in addition to setting up a strong password, you can limit the number of failed logon attempts in Windows 10, so that your account will be locked out after several failed logon attempts. Now, this post will show you how to limit the number of failed logon attempts in Windows 10 by configuring the account lockout policy. There are two ways are as below.


  • Way 1: through Local Security Policy
  • Way 2: with Command Prompt

Way 1: Limit the number of failed logon attempts through Local Security Policy

Step 1: Open the Local Security Policy through typing local security policy in the Start menu.

Limit the Number of Failed Logon Attempts in Windows 10

Step 2: Expand the Account Policies under Security Settings, and then click on Account Lockout Policy.

Step 3: Double-click on the "Account lockout threshold" to configure the policy.

Limit the Number of Failed Logon Attempts in Windows 10

Step 4: Select the "Local Security Settings" tab, change the number of invalid logon attempts between 0 and 999, and click Apply. The value of the Account lockout threshold is 0 by default, which means the account will not lock out no matter how many logon attempts are failed.

Limit the Number of Failed Logon Attempts in Windows 10

Step 5: You will get a prompt saying that the settings for the "Account lockout duration" item and "Reset account lockout counter after" item will be changed to the suggested values (30 minutes), click OK, and click OK again. You can change the suggested value to your desired value if you want to.

Limit the Number of Failed Logon Attempts in Windows 10

Way 2: Limit the number of failed logon attempts with Command Prompt

Step 1: Run a Command Prompt as administrator.

Step 2: Type net accounts /lockoutthreshold: (0-999) and press Enter key. For example, I want my account to be locked out after five failed logon attempts, so I type this command shown below and press Enter.

Limit the Number of Failed Logon Attempts in Windows 10

Step 3: If you want to change the account lockout duration, type net accounts /lockoutduration: (0-99999) and press Enter. For example, I set the lockoutduration to the suggested value (30 minutes) as shown in the figure below. If you set the account lockout duration to 0, the account will be locked out until the administrator unlocks it.

Limit the Number of Failed Logon Attempts in Windows 10

Conclusion: The above two methods of limiting the number of failed logon attempts take effect immediately without requiring you to restart Windows 10.

The above is the detailed content of Limit the Number of Failed Logon Attempts in Windows 10. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

ReactOS, the Open-Source Windows, Just Got an Update ReactOS, the Open-Source Windows, Just Got an Update Mar 25, 2025 am 03:02 AM

ReactOS 0.4.15 includes new storage drivers, which should help with overall stability and UDB drive compatibility, as well as new drivers for networking. There are also many updates to fonts support, the desktop shell, Windows APIs, themes, and file

How to Create a Dynamic Table of Contents in Excel How to Create a Dynamic Table of Contents in Excel Mar 24, 2025 am 08:01 AM

A table of contents is a total game-changer when working with large files – it keeps everything organized and easy to navigate. Unfortunately, unlike Word, Microsoft Excel doesn’t have a simple “Table of Contents” button that adds t

Microsoft's New PowerToys Search Is the Missing Feature Windows 11 Needs Microsoft's New PowerToys Search Is the Missing Feature Windows 11 Needs Apr 03, 2025 am 03:53 AM

Microsoft's latest PowerToys update introduces a game-changing search feature reminiscent of macOS' Spotlight. This improved "Command Palette" (formerly PowerToys Run) surpasses the functionality of the Windows R Run command and the task

New to Multi-Monitors? Don't Make These Mistakes New to Multi-Monitors? Don't Make These Mistakes Mar 25, 2025 am 03:12 AM

Multi-monitor setups boost your productivity and deliver a more immersive experience. However, it's easy for a novice to stumble while assembling the setup and make mistakes. Here are some of the most common ones and how to avoid them.

How to Disable Windows 11 Round Corners: 4 Easy Methods! How to Disable Windows 11 Round Corners: 4 Easy Methods! Mar 27, 2025 pm 03:27 PM

This guide provides four methods to remove the rounded corners in Windows 11, restoring the classic square-edged look. While the rounded corners offer a modern aesthetic, some users prefer the sharper look for reasons including improved screenshot a

Why Do Some Keyboards Have Coiled Cables? Why Do Some Keyboards Have Coiled Cables? Mar 27, 2025 pm 09:01 PM

For mechanical keyboard enthusiasts, those intriguing coiled cables are a common sight. But why the coil? Let's delve into the reasons. Coiled Cables: Primarily Aesthetics The main draw of coiled cables is their visual appeal. They enhance the look

These Are My Go-To Free Alternatives for Paid Windows Apps These Are My Go-To Free Alternatives for Paid Windows Apps Apr 04, 2025 am 03:42 AM

Many free apps rival their paid counterparts in functionality. This list showcases excellent free Windows alternatives to popular paid software. I firmly believe in using free software unless a paid option offers a crucial, missing feature. These

The Pixel 9a and Your Non-Private Smart Home: Weekly Roundup The Pixel 9a and Your Non-Private Smart Home: Weekly Roundup Mar 25, 2025 am 03:09 AM

Smart Home Privacy Takes a Blow as Amazon Kills Alexa Local Processing Alexa devices will no longer offer a "do not send voice recordings" setting after March 28th. Future Alexa recordings must be sent to the Amazon cloud, though you can

See all articles