Sub topic 12
Password, Lockout and Screen Lock Policies
This chapter assumes you know how Windows local accounts and groups work, and that you can open a command prompt. Account policies are rules that Windows applies to every sign-in. They make weak passwords harder to choose and slow down guessing attacks. They also protect a session when the user walks away.
The three policy areas
| Policy area | What it controls | Attack it counters |
|---|---|---|
| Password policy | Length, complexity, age, history | Guessing, reuse of old passwords |
| Account lockout policy | Failed attempts, lockout time | Brute force |
| Screen lock policy | Idle timeout, password on resume | Unattended access, shoulder surfing |
Password policy
Common settings are minimum length, complexity, maximum age and history. Complexity usually means a mix of uppercase, lowercase, digits and symbols. Maximum age forces a change after a set number of days. History stops users from cycling back to a recent password. Current guidance favors longer passphrases over frequent forced changes, but the exam still tests these settings.
Lockout policy
Lockout policy has three values:
- Lockout threshold: the number of failed attempts allowed.
- Lockout duration: how long the account stays locked.
- Lockout window: how long Windows keeps counting failures before the counter resets.
This command sets all three on a local machine:
net accounts /lockoutthreshold:5 /lockoutduration:30 /lockoutwindow:30After five wrong passwords within 30 minutes, the account is locked for 30 minutes. Run net accounts with no options to view the current values.
A very low threshold can lock out real users by accident. It can also let an attacker lock out accounts on purpose, which is a denial of service.
Screen lock policy
A screen lock hides the session after a period of inactivity and requires a sign-in to resume. Users can also lock manually with Windows key + L. Set the timeout to match how sensitive the area is. A reception desk needs a shorter timeout than a private office.
Where policies are set
Use the diagram below to see where each policy lives.
On a standalone PC, open secpol.msc and go to Account Policies. On a domain, an administrator sets the rules once in Group Policy, and they apply to every member computer. Group Policy overrides local settings.
Common errors
- Setting the threshold to 0. This means accounts never lock, so brute force is unlimited.
- Setting lockout duration to 0. The account stays locked until an administrator unlocks it.
- Requiring complexity but allowing a very short minimum length.
- Applying a local policy on a domain computer and wondering why it reverts. Group Policy wins.
Exercise
A technician sets the lockout threshold to 3 on a shared kiosk PC. Users now report being locked out often. Name two settings the technician can change to reduce the problem without removing brute force protection.
Show answer
Raise the lockout threshold (for example to 5 or 10) and shorten the lockout duration so accounts unlock on their own sooner. Shortening the lockout window also helps, because failures are forgotten sooner.