search
HomeSystem TutorialWindows SeriesLimit the Number of Failed Logon Attempts in Windows 10

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
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
This Tiny PC Can Fit In Your PocketThis Tiny PC Can Fit In Your PocketApr 23, 2025 pm 12:01 PM

This incredibly compact PC rivals the size of a smartphone, making it one of the smallest PCs available. Measuring just 145mm long, 62mm wide, and 20mm thick (approximately 5.7 x 2.4 x 0.8 inches), it's remarkably portable, reminiscent of the now-di

Logitech Is Quietly Increasing Its PricesLogitech Is Quietly Increasing Its PricesApr 23, 2025 am 03:02 AM

Logitech quietly raises prices on many products, citing no specific reason. Observers note price increases of up to 25% on various items, strongly suggesting the impact of ongoing US tariffs on goods imported from China, where Logitech's main manufa

How to Stop Windows 11 From Auto-Installing Device DriversHow to Stop Windows 11 From Auto-Installing Device DriversApr 23, 2025 am 01:02 AM

The only way to safely update Windows hardware drivers Want to update your computer's hardware driver? Please get driver updates from Windows Update or the device manufacturer's website. Before making the following changes, be sure to create a system restore point. If something goes wrong, it will be easier to undo the changes. Use Settings to turn off automatic device driver installation One way to prevent Windows 11 from automatically installing device drivers is to switch an option in Settings. To do this, press Windows i to start "Settings". In the left sidebar, select System. At the bottom of the right pane, select About. Select Device Specifications. In the expanded section, select Advanced System Settings. exist

8 Ways to Clear the Clipboard on Windows 118 Ways to Clear the Clipboard on Windows 11Apr 21, 2025 pm 12:13 PM

This guide provides multiple ways to clear your Windows 11 clipboard, ensuring your copied data remains private. Your clipboard stores various items, including text, images, and videos. Let's explore several methods to erase its contents. Method 1:

Logitech's G515 Lightspeed keyboard is 25% offLogitech's G515 Lightspeed keyboard is 25% offApr 21, 2025 pm 12:06 PM

Logitech G515 Lightspeed TKL Mechanical Gaming Keyboard Review The Logitech G515 Lightspeed TKL uses low profile keys and feels very similar to the Apple Magic Keyboard, but has an additional mechanical switch, which is slim overall and has a rechargeable battery. Amazon Link This keyboard is perfect for users who both work and games. Amazon currently sells for $119.99, down from its original price of $159.99, only once before it reached this price. G515 Lightspeed TKL is slim in size, 14.49 inches long and 5.91 inches wide,

How to Enable TPM 2.0 to Get Windows 11How to Enable TPM 2.0 to Get Windows 11Apr 21, 2025 am 11:17 AM

Many users with powerful desktops were initially blocked from upgrading to Windows 11 due to a simple BIOS setting being disabled by default: TPM 2.0. This guide explains how to enable it. Checking for TPM Compatibility Windows has a built-in tool t

How to Download a Website as an App on the DesktopHow to Download a Website as an App on the DesktopApr 21, 2025 am 10:37 AM

Quickly Access Your Favorite Websites: Two Methods for Adding Websites to Your Desktop Tired of hunting through bookmarks? Windows offers easy ways to add frequently visited websites directly to your desktop for instant access. This guide details tw

8 Ways to Open the Run Dialog Box on Windows 118 Ways to Open the Run Dialog Box on Windows 11Apr 20, 2025 am 06:01 AM

Windows 11's Run dialog box (Run) provides a convenient way to quickly access various system features and installed applications. The way to start this dialog is simple, just use keyboard shortcuts or select menu items. This article will describe several ways to start this utility. Use keyboard shortcuts to open the run dialog The quickest way to start a Run dialog on Windows 11 is to use keyboard shortcuts. This method opens the dialog box instantly. To do this, press the Windows R key on the keyboard. No matter where you are currently on your computer, Windows 11 will immediately open the Run dialog box. You can then enter the name of the utility you want to start.

See all articles

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

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools