- Open the command prompt as an Administrator.
- To view the current minimum password length, enter the command
net accounts - To set a minimum password length, enter the command
net accounts /minpwlen:n
Range is 0-14, this has not change in Windows 11. National Institute of Standards and Technology recommends a minimum password length from 8 to 14 characters.
More uses
- net accounts /MAXPWAGE:UNLIMITED - do not expire password
- net accounts /maxpwage:days – This sets the maximum number of days after which the user will have to change the password. Replace days with the desired value. Range is from 1-999. If used unlimited, no limit is set. The value of maxpwage should always be greater than minpwage.
- net accounts /minpwage:days – This sets the minimum number of days that must pass before the password can be changed. Replace days with the desired value. Range is from 1-999.
- net accounts /uniquepw:number – This sets the number of times after which a password can be used again. Replace number with the desired value. Maximum value is 24.