Net accounts command – Used on a Windows 2003 domain environment

Net accounts – Updates the user accounts database and modifies password and logon requirements for all accounts.

To display the current settings, the password requirements, and the server role for a server, type:
net accounts
To set a minimum of seven characters for user account passwords, type:
net accounts /minpwlen:7
To specify that users can reuse a password only after the fifth time they change passwords, type:
net accounts /uniquepw:5
To prevent users from changing passwords more often than every seven days, force users to change passwords every 30 days, and force users to log off after the logon time expires with a five-minute warning, type:
net accounts /minpwage:7 /maxpwage:30 /forcelogoff:5
To ensure that the preceding settings take effect for the domain that the computer is logged on to, type:
net accounts /minpwage:7 /maxpwage:30 /dom


This is an exmaple of the results of a net accounts command:

C:\Documents and Settings\Administrator>net accounts
Force user logoff how long after time expires?: Never
Minimum password age (days): 0
Maximum password age (days): 1
Minimum password length: 4
Length of password history maintained: 24
Lockout threshold: 5
Lockout duration (minutes): 5
Lockout observation window (minutes): 5
Computer role: PRIMARY
The command completed successfully


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: