net accounts
manages user accounts database, modify password and logon requirements. /forcelogoff:{minutes | no} | |
/minpwlen:n | Sets the minimum password length to n |
/maxpwage:{days | unlimited} | Sets the maximum of days for which the same password is allowed. |
/minpwage:days | The number of days a user cannot change a password after changing it. Setting this value to 1 prevents a user from bypassing the uniquepw policy. |
/uniquepw:n | Sets the number of (different) passwords a user must use until he is able to re-use a password. |
/domain | If specified, the operation is peformed on the domain controller. |
net accounts
without parameters shows the current settings: C:\> net accounts Force user logoff how long after time expires?: Never Minimum password age (days): 0 Maximum password age (days): 42 Minimum password length: 0 Length of password history maintained: None Lockout threshold: Never Lockout duration (minutes): 30 Lockout observation window (minutes): 30 Computer role: WORKSTATION The command completed successfully.
net user <username>
shows (among other information) the date of the last modification of the user's password and when (if) it expires.