Batch-script-net-user
提供:Dev Guides
バッチスクリプト-NET USER
このコマンドは次のために使用することができます-
- 特定のユーザーアカウントの詳細を表示します。
- ユーザーアカウントを追加します。
- ユーザーのアカウントを削除します。 *ユーザーのアカウントを変更します。
構文
Net user [username [password |* ] [options]] [/DOMAIN]
username {password | *}/ADD [options] [/DOMAIN]
username [/DELETE] [/DOMAIN]
例
NET USER
上記のコマンドは、システムで定義されているすべてのアカウントを表示します。 上記のコマンドの出力は次のとおりです。
User accounts for \\WIN-50GP30FGO75
-------------------------------------------------------------------------------
Administrator atlbitbucket Guest
The command completed successfully.
net user Guest
上記のコマンドは、システムで定義されたゲストアカウントの詳細を表示します。 上記のコマンドの出力は次のとおりです。
出力
User name Guest
Full Name
Comment Built-in account for guest access to the computer/domain
User's comment
Country/region code 000 (System Default)
Account active No
Account expires Never
Password last set 1/4/2016 9:34:25 AM
Password expires Never
Password changeable 1/4/2016 9:34:25 AM
Password required No
User may change password No
Workstations allowed All
Logon script
User profile
Home directory
Last logon Never
Logon hours allowed All
Local Group Memberships *Guests
Global Group memberships *None
The command completed successfully.