Modifies the user accounts database and changes logon and password requirements.
net accounts [/forcelogoff:{minutes | no}] [/minpwlen:length] [/maxpwage:[days | unlimited]] [/minpwage:days] [/uniquepw:number] [/domain] net accounts [/sync] [/domain]
Parameters | |
---|---|
| |
Parameter | Purpose |
| |
None | Displays current domain, logon, and password settings. |
[/forcelogoff:{minutes | no}] | Specifies the number of minutes to wait before terminating a user session with a server when the user's logon time expires. No prevents a forced logoff. |
[/minpwlen:length] | Sets the minimum password length. |
[/maxpwage:[days | unlimited]] | Sets the password expiration period. |
Parameters | |
---|---|
| |
Parameter | Purpose |
| |
[/minpwage:days] | Specifies a minimum number of days that must pass before users can change passwords. |
[/uniquepw:number] | Establishes a password history requirement that prevents users from reusing a password for the specified number of times. |
[/domain] | Specifies that the operation should occur on a domain controller instead of locally. |
[/sync] | Causes the primary domain controller to synchronize with all the backup domain controllers. |