net accounts
SafePassword policy
net accounts
Shows password/lockout policy (add /domain for AD values) — baseline data for lockout hunts.
Examples
net accounts /domainDomain lockout thresholdsnet user taro /domainA user's lock state, last password change and expiryGet-ADDefaultDomainPasswordPolicyThe same information in PowerShellGet-ADUserResultantPasswordPolicy taroCheck whether a fine-grained password policy applies
Syntax
net accounts [/domain]
Key points
- A lockout threshold of Never means lockout is disabled.
- An account locks when failures reach the threshold within the lockout observation window.
- /domain shows the default domain policy. Users under a fine-grained policy may have different values.
When it does not work
- Repeated lockouts usually come from a device still using an old password: saved credentials, phone mail clients or mapped drives.
Before you run it
Read only.
Related commands
- Search-ADAccountFind problem accounts
- net userUser account info/ops
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store