Skip to content
  • PC & Mobile
    • Windows
    • Mac
    • Linux
    • Mobile
    • Android
    • iOS
    • Chrome OS
  • Hardware
    • PC Hardware
    • Product Review
    • Smart Home
  • Lifestyle
    • Internet
    • Gaming
    • Productivity
    • How Things Work
    • Glossary
    • News
  • Cheatsheets
  • Deals

Dark mode:

Home > Windows

How to Auto Lockdown Your PC After a Certain Number of Invalid Logon Attempts

Vamsi Krishna
Vamsi Krishna
Aug 9, 2014

Most of us use an account password to protect our Windows computers, and sometimes no matter how strong the password you are using, it doesn’t stop those people who are desperate to try to guess your Windows logon password. To make matters worse, they may even succeed with few tries if you are using easy-to-guess passwords to secure your Windows computer. If you want to avoid those kinds of awkward situations, here is how you can get your PC to auto lockdown after a certain number of invalid logon attempts on your Windows machine.

Note: While this tip is helpful in protecting your Windows computer from wild password guesses and brute force attacks, it can’t protect your Windows computer from resetting its password by other means (like using live CD).

Temporarily Lock Your PC

1. Before doing anything, let’s check if there are any pre-set thresholds on your Windows computer. To do that, open your command prompt as admin (press “Win + X” and select “Command Prompt (admin)” ) and enter the following command:

net accounts

temporarily-lock-windows-lockout-state-before

Once you execute the above command, the command prompt will display your current account security policy. If there is no previous threshold set, then you should see the value “Lockout threshold” set to “Never.”

2. To temporarily lock your PC after a certain number of invalid logon attempts, we are going to modify a couple of Windows local security policies. First, press “Win + X” and select “Control Panel” from the list of options.

temporarily-lock-windows-open-control-panel

3. Select “Administrative Tools.” Also ensure that “view by” is set to large or small icons.

temporarily-lock-windows-select-admin-tools

4. Here find and double click on “Local Security Policy.” This action will open “Local Security Policy” window.

temporarily-lock-windows-select-local-sec-policy

5. Now on the left pane, navigate to “Account Policies” and then “Account Lockout Policy.” Now on the right pane, select and double click on “Account lockout threshold.”

temporarily-lock-windows-account-lockout-threshold

Enter the allowed number of invalid logon attempts and click on the OK button to save changes. As you can see from the image below, I’ve entered the value as 10, i.e. Windows will lock out the computer after ten invalid logon attempts.

temporarily-lock-windows-set-logon-attempts

As soon as you click on the OK button, Windows will open another window with optimal suggestions where “Account lockout duration” is set to 30 minutes and “Reset account lockout counter after” is also set to 30 minutes. Just click on the OK as 30 minutes is more than enough for any computer. Also, you can reset the lockout and reset the time any time you want from “Local security policy.”

temporarily-lock-windows-windows-lockout-suggestions

Once everything is done, your Local security policy window will look something like this.

temporarily-lock-windows-local-sec-policy-after

Alternatively, you can also confirm the changes using the command prompt method show above:

net accounts

temporarily-lock-windows-lockout-state-after

Once executed, you will see that the “Lockout threshold” is set to 10 attempts and duration and reset window is set to 30 minutes each.

That’s all there is do. From now on, your Windows machine will block any user after a certain number of invalid logon attempts effectively blocking password guesses and brute force attacks.

Hopefully that helps, and do comment below if you face any problems while setting up the lockout threshold in your Windows machine.

Is this article useful?
Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

  • Facebook
  • Tweet

Popular Posts

How to Convert Legacy BIOS to UEFI in Windows

Settings App Not Working in Windows? Here Are the Fixes

The Best Windows 10 and 11 Easter Eggs to Seek Out

How to Remove Old and Useless Drivers in Windows

How to Capture a Scrolling Screenshot in Windows

How to Use Your Smartphone as a Microphone in Windows

Headphones Not Working in Windows? Here Are Some Fixes

8 Ways to Customize Windows Terminal

Can (and Should) You Continue to Use Windows 8 or 8.1?

How to Troubleshoot Windows Detected a Hard Disk Problem

Affiliate Disclosure: Make Tech Easier may earn commission on products purchased through our links, which supports the work we do for our readers.

Read Next

Settings App Not Working in Windows? Here Are the Fixes
20 Things to Try When Your Mouse Keeps Freezing in Windows
How to Check What Version of Windows You Are Running
How to Easily Download Streaming Video on Any Platform
How to Convert Legacy BIOS to UEFI in Windows
How to Defrag Your Windows Hard Drive
The Best Windows 10 and 11 Easter Eggs to Seek Out
15 Safe Websites for Downloading Windows Software

© 2022 Uqnic Network Pte Ltd.
All rights reserved.

  • About
  • Contact
  • Advertise
  • Write For Us
  • Terms of Use
  • Privacy Policy
  • RSS Feed Terms
Do not share my Personal Information.