Home > Article > System Tutorial > Detailed explanation of net user command
The
.net user command can be used to manage Windows user accounts and group memberships. Common operations include: creating users (/add), changing passwords, deleting users (/delete), listing users, and adding or deleting user group members (/add, /delete).
Command details: .net user
.net user command is a Command line tool for managing Windows user accounts. It allows administrators to create, modify, delete and list user accounts and manage user group memberships.
Syntax:
<code>net user [操作] [用户名] [选项]</code>
Common operations:
Create user account:
<code>net user 用户名 密码 /add</code>
Change user password:
<code>net user 用户名 密码</code>
Delete user account:
<code>net user 用户名 /delete</code>
List user accounts:
<code>net user</code>
Add user to group:
<code>net localgroup 组名 用户名 /add</code>
Remove user from group:
<code>net localgroup 组名 用户名 /delete</code>
##Common options:
Example:
<code>net user JohnDoe password123 /add</code>
<code>net user JohnDoe newPassword</code>
<code>net user JohnDoe /delete</code>
<code>net user</code>
<code>net localgroup Administrators JohnDoe /add</code>
<code>net localgroup Administrators JohnDoe /delete</code>
The above is the detailed content of Detailed explanation of net user command. For more information, please follow other related articles on the PHP Chinese website!