Net Commands

Net Commands

The following Net Commands can be used to perform operations on Groups, users, account policies, shares etc.

NET    ACCOUNTS

COMPUTER CONFIG CONTINUE FILE GROUP HELP HELPMSG LOCALGROUP NAME PAUSE PRINT SEND SESSION SHARE START STATISTICS STOP TIME USE USER VIEW

The “Net Accounts” command is used to set the policy settings on local computer such as Account policies and password policies. This command can not be used on domain controller. This command is only used on local computer.

When you type Net Accounts you will see the default settings in local computer for the Account Lockout policy and Password Policy as shown below:

clip_image002

The above settings displayed as per the role of the computer. If computer is joined to a domain, the domain settings will take effect and only the settings coming from domain will be displayed. The rest settings will be the local settings if its not coming from the Domain GPO.

You can change the following use the following options in Net Accounts option:

NET ACCOUNTS

[/FORCELOGOFF:{minutes | NO}]

[/MINPWLEN:length]

[/MAXPWAGE:{days | UNLIMITED}]

[/MINPWAGE:days]

[/UNIQUEPW:number] [/DOMAIN]

Two conditions are required in order for options used with

NET ACCOUNTS to take effect:

/FORCELOGOFF:{minutes | NO} Sets the number of minutes a user has before being forced to log off when the account expires or valid logon hours expire. NO, the default, prevents forced logoff.

/MINPWLEN:length Sets the minimum number of characters for a password. The range is 0-14 characters; the default is 6 characters.

/MAXPWAGE:{days | UNLIMITED} Sets the maximum number of days that a

password is valid. No limit is specified by using UNLIMITED. /MAXPWAGE can’t be less than /MINPWAGE. The range is 1-999; the default is 90 days.

/MINPWAGE:days Sets the minimum number of days that must pass before a user can change a password. A value of 0 sets no minimum time. The range is 0-999; the default is 0 days. /MINPWAGE can’t be more than /MAXPWAGE.\

/UNIQUEPW:number Requires that a user’s passwords be unique through the specified number of password changes. The maximum value is 24.

/DOMAIN Performs the operation on a domain controller of the current domain. Otherwise, the operation is performed on the local computer.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>