Pages

Wednesday, February 19, 2025

How to check or change the minimum password length in Windows

On Widows the max password length can be 127 long. I recommend the length of the current year 2025, a min password length of 25 characters long. 

  1. Open the command prompt as an Administrator. 

  2. To view the current minimum password length, enter the command 

    net accounts 



















  3. 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

  1. 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.

  2. 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.

  3. 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.















No comments:

Post a Comment