Net Accounts
Updates the user accounts database and modifies password and logon
requirements for all accounts. The Net Logon service must be running on the computer for
which you want to change account parameters.
net accounts [/forcelogoff:{minutes | no}] [/minpwlen:length] [/maxpwage:{days | unlimited}] [/minpwage:days] [/uniquepw:number] [/domain]
net accounts [/sync] [/domain]
Parameters
none
Type net accounts without parameters to display the current settings for password, logon
limitations, and domain information.
/forcelogoff:{minutes | no}
Sets the number of minutes to wait before ending a user's session with a
server when the user account or valid logon time expires. The no option prevents forced logoff. The default is no.
When the /forcelogoff:minutes option is specified, Windows NT sends a warning minutes minutes before it forces the user off from the network. If any files are
open, Windows NT warns the user. If minutes is less than two, Windows NT warns the user to log off from the network
immediately.
/minpwlen:length
Sets the minimum number of characters for a user-account password. The range
is 0-14 characters; the default is 6 characters.
/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-49,710 days (unlimited); the default is 90 days.
/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-49,710 days; the default is 0
days.
/uniquepw:number
Requires that a user not repeat the same password for number password changes. The range is 0-8 password changes; the default is 5
password changes.
/domain
Performs the operation on the primary domain controller of the current domain.
Otherwise, the operation is performed on the local computer.
This parameter applies only to Windows NT Workstation computers that are
members of a Windows NT Server domain. By default, Windows NT Server computers
perform operations on the primary domain controller.
/sync
When used on the primary domain controller, causes all backup domain
controllers in the domain to synchronize. When used on a backup domain controller,
causes that backup domain controller only to synchronize with the primary domain
controller. This command applies only to computers that are members of a
Windows NT Server domain.
More Information About Net Accounts
Net Accounts--Examples