批处理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.
以下命令显示了在系统上定义的Guest帐户的详细信息。
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.