Tools
Log in
English

Learn to codeSecurity check

Weak local password policy

MediumW10Windows PCs and servers

Set a minimum password length and account lockout to stop password guessing.

What is the risk

With short passwords and no lockout, Remote Desktop and SMB can be hit with guesses forever.

How to check

Windows PowerShell (admin)

net accounts

Look at minimum password length and lockout threshold. Fix it if the threshold is 0 or Never.

How to fix

Windows PowerShell (admin)

net accounts /minpwlen:12 /lockoutthreshold:10 /lockoutwindow:15 /lockoutduration:15

At least 12 characters; 10 wrong tries in 15 minutes locks the account for 15 minutes. On domain computers set this in group policy.

How to prevent it

  • Use long passphrases.
  • Add multi-factor authentication to remote access.

Check again after fixing

Windows PowerShell (admin)

net accounts

Run the downloaded check again and make sure this item passes.

Security check home