批處理指令碼 - NET 帳戶



檢視計算機的當前密碼和登入限制。

語法

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

其中

  • FORCELOGOFF − 在指定的時段內強制當前使用者登出。

  • MINPWLEN − 這是要為使用者提供的最小密碼長度設定。

  • MAXPWAGE − 這是要為使用者提供的最大密碼有效期設定。

  • MINPWAGE − 這是要為使用者提供的最小密碼有效期設定。

示例

NET ACCOUNT

輸出

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
廣告