Managing User Account with Command Line in Windows 10

Managing user account and groups with “net” command line. The Net user command line is a built-in Windows Command tool. It uses for creating, deleting and managing user account in Windows operating system. Managing user account using command line and graphical interface both are easy. But the command line is high-speed and powerful. The net command utility works on command prompt and PowerShell.

To learn more about Powershell, just read the PowerShell articles on the technig.com. And let’s start managing user account with a command line.

Managing user account using command line in Windows 10: 

  1. Net user command review.
  2. Add a user account with command.
  3. Set Password to a user account with command.
  4. Change user account password using a command line.
  5. Upgrade standard user to an Administrator account.
  6. Delete a user account and profile with command.

To run net user command, open command prompt or PowerShell with typing “cmd” on Windows Run.

  1. Press Windows+R to open the run.
  2. Type “cmd” and press enter for command prompt. And for Powershell just type “Powershell.”
  3. Now, type “net user /?” and press enter to see the net user command line help.

Note: If you want to execute net user to add a new user or bring changes, you must run cmd or Powershell as administrators. It does not work as standard users. To run them as an administrator, just press Windows and search Powershell then press Shift+Ctrl and press enter.

Managing User Account using Command Line

To understand the structures of a command prompt command, get the help by typing “/?” at the end of any command on command prompt and PowerShell. It will show you the help documents.

Net User command line helps in Windows 10

Net User command line helps in Windows 10

Add a New User Account with Command Line

Let’s start and create a new user account with the net user command, named Ali with Password 123, and press enter. Type the following command to add a new user account with the command line in Windows 10.

Add User Account with Command Line in Windows 10

Add User Account with Command Line in Windows 10

The user Ali has been created successfully. If it shows the Access denied error, it means that the command prompt is running as standard users, like bellow error.
To view the complete information for a newly created user account, just type “net user Ali” and press enter. It will show you the user local group membership, Global group membership, date of creation, etc.

Managing User Account using Command Line in Windows 10 - Technig

Managing User Account using Command Line in Windows 10 – Technig

Set Password to User Account with command

To set a password to a user account or changing password of a user account, type “net user Ali *” command then press enter and type the new password twice.

Change Windows 10 User Account Password with Command Line - Technig

Change Windows 10 User Account Password with Command Line – Technig

You can use this method to change any user account password in Windows 10 and other Windows operating systems.

Change Standard User to Administrator in Windows 10

You have created a new standard user account successfully and now try to add this user account to a Administrators group. The administrator privilege gives you the ability to bing changes to Windows 10 system and settings. With a standard user account, you cannot run the command, install software and change Windows settings. To change standard user to Administrator in Windows 10, just type the following command.

On the user information, you saw that Ali was only the member of Users group which is a standard group. You can add a user account to a group with “Net Localgroup” command.

How to Change Standard User to Administrator in Windows 10 - Technig

How to Change Standard User to Administrator in Windows 10 – Technig

To remove a user group membership, type the following command and press enter

Delete User Group Membership

Delete User Group Membership

 

Delete a User account with Net User Command

If you don’t need a user account anymore, don’t leave it away. Delete or disable it for security reasons. Someone might crack the password and log in to your system. To delete a user type “net user Ali /delete” command.  

How to delete administrator account in Windows 10 - Technig

How to delete administrator account in Windows 10 – Technig

Note: When you remove a user with net user command line, the profile’s of deleted user account remains in the user profiles folder. You must delete it manually from user profile setting. Read this article “Remove User Profile correctly in Windows 10“.

I hope you find the article managing user account using command line in Windows 10 helpful. If you have any problem or question about the managing user account using command line feel free and ask through comment. If you don’t like to use command line, try to read the article about creating a user account with a graphical interface in Windows 10.

<p>I’m a network and Information Security instructor. Here is my online pictorial notebook. I would like to write and share my experience through this website for computer enthusiasts and technology geeks.</p>

Leave a Reply