How to change minimum password length in Windows 10 or Windows 11

Microsoft has developed several techniques over time to authenticate a user. For example, a local account, a Microsoft account or a fingerprint, a password, or a PIN can be used to log in.

To log in with these options, the user must enter a password. However, in Windows 10 or Windows 11, a local user account can be created without requiring a password. This means that even if the user does not know the password, they can easily access and use the computer.

Setting a minimum password length for a local user account allows a password to be added to an account.

How to change minimum password length in Windows 10 or Windows 11

Click the magnifying glass in the taskbar in Windows 11 or click the search window in Windows 10. In the search window type: command prompt. Right-click on the Command Prompt result and click “Run as Administrator”.

Run command prompt as administrator

In the Command Prompt window type the following command to force a minimum password length in Windows 10 or 11.

<minimum password length> replace this with a number. For example, 12

net accounts /minpwlen:<minimum password length>

The command then becomes:

net accounts /minpwlen:12

net accounts minpwlen

You have now set a minimum password length for all local user accounts in Windows 10 or 11.

If you change the number to “0”, the minimum password length is restored to default values. There is then no active policy that requires a minimum number of characters for a password.

I hope this has helped you. Thanks for reading!

Leave a Comment

Your email address will not be published.

Scroll to Top