Batch Script - NET ACCOUNTS



View the current password & logon restrictions for the computer.

Syntax

NET ACCOUNT [/FORCELOGOFF:{minutes | NO}] [/MINPWLEN:length]
[/MAXPWAGE:{days | UNLIMITED}] [/MINPWAGE:days] 
[/UNIQUEPW:number] [/DOMAIN]

Wherein

  • FORCELOGOFF − Force the log-off of the current user within a defined time period.

  • MINPWLEN − This is the minimum password length setting to provide for the user.

  • MAXPWAGE − This is the maximum password age setting to provide for the user.

  • MINPWAGE − This is the minimum password age setting to provide for the user.

Example

NET ACCOUNT

Output

Force user logoff how long after time expires?:      Never
Minimum password age (days):                         0
Maximum password age (days):                         42
Minimum password length:                             0
Length of password history maintained:               None
Lockout threshold:                                   Never
Lockout duration (minutes):                          30
Lockout observation window (minutes):                30
Computer role:                                       SERVER
The command completed successfully.
batch_script_network.htm
Advertisements