The syntax of this command is:
NET ACCOUNTS [/FORCELOGOFF:{minutes | NO}]
[/MINPWLEN:length]
[/MAXPWAGE:{days | UNLIMITED}]
[/MINPWAGE:days]
[/SYNC]
[/UNIQUEPW:#]
This command displays the role of servers in a domain and
displays or modifies password and logon user requirements.
COMMENTS
Type "net accounts" to display the current settings for
password and logon limitations and the role of the server.
If the role of the server is backup, the name of
the primary domain controller is displayed.
The "net accounts" command options also set the logon and
password requirements for user accounts on a server. This
information is stored in the server's datafiles, along
with user accounts and resource permissions.
When the /FORCELOGOFF:minutes option is specified, the
server sends a warning two minutes before it forces the user
off the network. If any files are open, the server warns
the user. If minutes is less than two, the server warns the
user to log off from the network immediately.
OPTIONS
/FORCELOGOFF:{minutes | NO} - Sets the number of minutes to
wait before ending a user's session with the server
when the user account or valid logon time expires. The
NO value prevents forced logoff. The default is
NO.
/MINPWLEN:length - Sets the minimum number of characters for
a user account password. The range is 0 through 14;
the default is 0.
/MAXPWAGE:{days | UNLIMITED} - Sets the maximum number of
days that a user account's password is valid. A value
of "unlimited" sets no maximum time. The /MAXPWAGE
option must be greater than /MINPWAGE. The range is 1
through 24855; the default is 42 days. For example,
you set the maximum password age to 10 on August 20.
Any user who had not changed his or her password since
August 10 would be allowed to log on once and would
receive a message that the password had expired. This
user would have to change the password during this
session in order to log on again. Users who had
changed their passwords on August 19 would have until
August 29, when their passwords would expire.
/MINPWAGE:days - Sets the minimum number of days before a
user can change a new password. A value of 0 sets no
minimum time. The range is 0 through 24855; the
default is 0 days.
/SYNC - When used on the primary domain controller, causes
all backup controllers to synchronize with the primary.
When used on a backup controller, causes only that
controller to synchronize with the primary. Does not
apply to a member server.
/UNIQUEPW:# - Requires that a user's passwords be
unique through number password changes. The range is 0
through 8; the default is 5 password changes.
Password restrictions apply to the "net password"
command. You can always change a password with the net
user command.
EXAMPLES
At a UNIX system console, to display the current settings
for forced logoff, the password requirements, and the server
role, type the following:
net accounts
To set a minimum of seven characters for user account
passwords, type the following:
net accounts /minpwlen:7
To specify that no password can be used more than every
fifth time a password is changed, type the following:
net accounts /uniquepw:5
To prevent users from changing passwords more often than
every seven days, and to force all users to change passwords
every 30 days, type the following:
net accounts /minpwage:7 /maxpwage:30
To run the same command remotely (on server "market_asu"), type
the following (replacing "password" with the password for
"administrator":
net admin \\market_asu password /command net accounts
/minpwage:7 /maxpwage:30
SEE ALSO
For information about See
_____________________ _________
Getting help with network commands net help
Changing a password net password
To get Help on command options, type "net help {command} /options | more".
To get Help one screen at a time, type "net help {command} | more".