After 3 attempts to enter the password, the account will be locked for 10 minutes.
1 2 3 |
@echo off net accounts /lockoutthreshold:3 /lockoutduration:10 /lockoutwindow:10 pause |
/lockoutthreshold: 3 - number of attempts (0 - disable)
/lockoutduration: 10 - blocking time in minutes
/lockoutwindow: 10 - time to reset the counter of attempts in minutes (if you enter the password incorrectly twice and wait 10 minutes, then there will be 3 attempts again)
The value of the /lockoutduration parameter must not be less than the value of /lockoutwindow .
To view the current settings, you need to run net accounts without parameters in the command line: