The net command provides an easy way to view and set account policies from the command line.
To view the current account policy settings, run the command net account from a command window. The output will look something like this:
Force user logoff how long after time expires?: Never
Minimum password age (days): 30
Maximum password age (days): 90
Minimum password length: 8
Length of password history maintained: 3
Lockout threshold: Never
Lockout duration (minutes): 60
Lockout observation window (minutes): 30
Computer role: WORKSTATION
The command completed successfully.
The account policies for the domain can be viewed by running the following:
net account /domain