With this trick to limit incorrect login attempts on Windows computers, Windows 10 users can customize the number of failed login attempts, the time to protect the computer, and the time allowed to log back in entirely according to their preferences. This is also a useful setting for users to prevent situations where young children randomly press keys on the keyboard. Whether you want to increase or decrease the limit of incorrect login attempts on Windows computers, first take a look at the guide below.
Guide to Restrict Incorrect Login Attempts on Windows Computers
Since the tutorial involves using Powershell, only Windows 10 machines have Powershell. Mytour will promptly update Japan for Windows 7 as soon as possible.
Step 1: Open StartMenu, type Powershell, and right-click on the result, choose Run as administrator.
Step 2: When the Powershell interface appears, type the command net accounts to check login information on Windows 10.
Step 3: Here, if the Lockout threshold line is filled with never, it means we have never limited the number of incorrect logins on Windows computers.
Step 4: To limit the number of logins, type command net accounts /lockoutthreshold:number of logins then press Enter.
- Here Mytour types net accounts /lockoutthreshold:9 meaning to limit login attempts to 9 times.
>> If you see the message The Command completed successfully, it means the setup was successful.
Step 5: To set the time Windows 10 automatically locks, enter command net accounts /lockoutduration:number of minutes.
- Here Mytour types net accounts /lockoutduration:35 meaning to limit the time for Windows 10 to lock after 35 minutes.
>> If you see the message The Command completed successfully, it indicates that the setup was successful.
Step 6: To make the login window return to the screen after locking, type the command net accounts /lockoutwindow:number of minutes.
- Here Mytour types net accounts /lockoutwindow:10 meaning to limit the time for Windows 10 to lock after 10 minutes.
>> If you see the message The Command completed successfully, it indicates that the setup was successful.
Step 7: After the settings above, type the command net accounts to check the commands you just set to limit the number of incorrect logins on Windows computers.
A table of parameters appears, here you will be informed in detail about the time you have set with the 3 commands above.
To remove the limit on the number of incorrect logins on Windows computers, type the command net accounts /lockoutthreshold:0 and press enter.
Above is a quick guide on how to limit the number of login attempts on Windows computers, with extending the number of login attempts not only increases the utility of the computer but also enhances the user's computer knowledge a little bit.
Moreover, Command Prompt and Powershell offer much more than that. There are plenty of Command Prompt and Powershell tricks and tips that readers can explore right at Mytour or await our upcoming articles guiding more tips, Command Prompt tricks included.
For Windows 10 users, when utilizing Powershell, it's essential to know some basic commands. Powershell commands are much more extensive than Command Prompt. Refer to Powershell commands here if you wish to delve further into this topic.
