Learn how to manage accounts for users on your computer or on a server by using net User Command Line.
The command ‘Net User’ line is very useful in managing user accounts in Windows 11. It is possible to perform a variety of actions using this command line like creating a new account, or changing the password for an existing account, for instance. But. in order to to use Net User, in order to be able to use Net User command, you need administrator privileges.
This Net User command is able to be executed using the natural Windows Command Line interpreter, such as that of the Command Prompt or the Windows PowerShell. There are a variety of parameters for the command Net User that can be utilized in conjunction with the command. This guide will provide you with a detailed listing of the parameters. It will guide you on how to quickly execute these commands with Command Prompt. Command Prompt interface.
Table of Contents
What is Net User Command and its Parameters
Its parameters and the Net User command are basically an instrument. If you are the administrator of the network of computers, you can utilize net User commands to control all the accounts of users directly using the command prompt without having to navigate through various settings menus.
The commands and the way it is used are as the following:
Parameter | Action |
Net user |
If you use it without any other parameters This command will provide you with the usernames for the accounts of users present on your system. Then, you can use the usernames to pair them with other parameters to carry out various actions. |
username |
If used in conjunction with when used in conjunction with the web user command It will display every single detail about the user. This parameter can be used with other parameters for additional actions. |
/add |
You can make use of the /add parameter in the command netuser to make a brand new user on your computer.Example: ‘net user username/add’ In this case, you must change the username to the name you wish to give for the account you want to create. It is also possible to add an account password to the new account. Example – ‘net user username password /add’ Simply replace the username with a name , and the password with the password you wish to provide to the account. |
/delete |
The parameter ‘/delete’ can be combined with the parameter ‘username’ to remove a particular account on your computer. Example – ‘net user username delete’ Simply replace the username by the user’s name. user you wish to delete from your computer. |
password |
The syntax ‘password’ can be combined with the username syntax to change the password for an account already in use or to create a new password for accounts that do not have the need for a password. |
* |
The parameter ‘*’ is utilized in lieu of the password parameter. It is useful when creating an account for a new user or creating a new password or changing one already assigned. When it is executed it will generate an prompt to type in the password into the Command Prompt window. Example: ‘net user Mike */add’ |
/domain |
The parameter ‘/domain’ is included in the command line in order to alter the actions that the command lines performs so that it takes action on a domain in instead of a local computer. This is a useful command for administrators of workstations or servers. Example: ‘net user Mike add* /domain |
/help |
The parameter ‘/help’ gives you the list of all available parameters , along with brief explanations of their functions within the Command Prompt window. Example: ‘net user/help’ |
/active: no |
Make use of the /active parameter using either the “yes” or ‘no suffix to enable or disable the user. The user who is deactivated is not able to connect to the server the computer is a part of. |
/comment |
The parameter ‘/comment’ is used to add a comment on an account of a user. |
/passwordchg: no | You can utilize the parameter ‘/passwordchg’ with either the “yes” or ‘no suffix to provide users the option to change their password for sign-in. |
There are many other options available, and you could combine them to do everything. These are the main ones you could frequently use. The guide will give you some examples of the way that you can use the Net User command is executed.
Add a New User using Password
First start typing “Command Prompt” in the Start Menu search, right-click on the app in the results of your search, and then choose Run as Administrator.
When you see the Command Prompt window appears, copy and paste the following command into the Command Line and then hit Enter.
net user username password /add
You must change the ‘username’ portion in the command line with the name you wish to assign to the account, and replace the password with a password which will be used to sign in to the account.
If everything is done right, when you press Enter it will display “The command was successfully completed” on the following line.
If you click on the Start button in the Taskbar and then click on your username, you’ll be able to see that your new account is listed under the option to sign out.
NOTE: Remember that accounts created by the method are local ones.
Removing a User
To remove a user’s account by using the net User command, you must first start the Command Prompt in administrator mode by searching it using the Start Menu search, right-clicking on it in results of the search, and then choosing the option to run as administrator..
When you have the Command Prompt window opens up Enter the following command into the Command Line and hit Enter to enter the command on your keyboard.
net user username /delete
You must replace username on the command line with the account you wish to delete off your PC.
If you remove the user, that it is no longer available in the Log-in options.
Checking Details of a User
The process of checking the information of a specific user is easy. Start with opening the Command Prompt window in Administrator mode by using your Start Menu Search. When you are in the Command Prompt window appears, enter net user in the command line, and then enter using your keyboard.
You will see an overview of all currently active user accounts on your computer.
All you need to do is to enter ‘net user *username*’ into the command line following and press Enter once more. Simply replace the username with the name of the account, and you’ll be provided with the complete details about the account’s account.
Changing Password of a User Account
First, type Command Prompt into the Windows search engine, then right-click it in the search results then select Run as administrator’.
When you have the Command Prompt window opens, enter the command below and then hit Enter.
Net username *username* password*
Change the username to the one for which you wish to alter the password. Also, replace the password should be changed to the new password that you wish to give for the account.
If you attempt to log in to the account , you’ll need to enter your new password.