Reference:
NET Help user
NET Help Group
Net User
Add or modify user accounts or display user account information.
Grammar
NET user [UserName [Password | *] [options] [/domain]
NET user [UserName {Password | *}/add [options] [/domain]
NET user [UserName [/delete] [/domain]
Parameters
UserName
Specifies the name of the user account to add, delete, modify, or view. A user account name can have up to 20 characters.
Password
Assign or change a password for a user account. Enter an asterisk (*) to generate a password hint that does not display a password when you type the password at the password prompt line.
/domain
Perform operations on the primary domain controller of the computer's primary domain.
Options
Specifies command-line options. The following table lists the valid command-line options that you can use. command-line Options Syntax Description/active:{no | Yes to enable or disable user accounts. If the user account is inactive, the user cannot access the resources on the computer. The default setting is Yes (active state).
/comment: "Text" provides a descriptive description of the user account. The note can have up to 48 characters. Enclose the text in quotation marks.
Example (a few commonly used)
View user information (for example: ABC): NET user ABC
Add a user (for example: ABC): NET User Abc/add
Delete a user (for example: ABC): NET User Abc/delete
Enable Ghust account: NET user Guest/active:yes
Disable Ghust account: NET user Guest/active:no
In addition, a problem is found, that is, the standard user login can create a super user through these commands, which is a vulnerability to the management of a local area network, it seems necessary to study the local policy or through the network management software to solve the problem.
Windows system Add Delete user command!