Manage User on Windows by command in CMD

In this article I will share with you some very useful commands to manage user accounts on Windows operating systems (Local Acconut).

In fact, in the previous article, I have already guided quite a few commands, such as creating a Windows User, adding a Windows User to the Admin group, setting a password for Windows, or changing the Windows password . through the command line. CMD.

If you have never read that article, please read it again here. Surely that article will be very useful to you.

In this article, I will continue to share with you a few good and useful commands in CMD to manage User on Windows more effectively.

And I also want to write a separate article for you to follow and find more convenient.

Okay, let's get started…. Ah, but first, open a CMD as administrator first. Otherwise it won't be possible.

#first. Command checks to see how many Users on Windows

At the CMD window, enter the following command => and press Enter to execute the command.

net user

=> Now you can see a list of Users available on Windows appear. As shown below, there are 2 User that is Administrator and TIPSMAKE.

// Note: After waking up any of these commands, if the message 'The command completed successfully' appears, you have successfully executed the command.

#2. Command to create a new User on Windows

With the creation of more User, we have 2 options that are to create User with password, or create User without password.

+ Case 1: Create a new User without login password.

Use the following command => and press Enter to execute:

net user TIPSMAKE / add

Now you can check in the Manage Accounts section that a newly created account is TIPSMAKE.

+ Case 2: Create a new User with a login password. Use the following command => and press Enter.

  1. Syntax: net user / add
  2. Applying to the example we have the command: net user TIPSMAKE 123456 / add

# 3. Add password for User on Windows

Yes, in case 1 above I have just created a new User User and no login password.

So now I want to add a password to the newly created account, I will use the following command:

  1. Syntax: net user 'password'
  2. Applying to the example we have the command: net user TIPSMAKE 1234

# 4. Remove password or replace password for User by command in CMD

So a question posed with the case 2 above, that now I want to change the password for Windows User, what should I do?

Use the following command => and press Enter to execute:

  1. Syntax: net user *
  2. Applying to the example we have the command: net user TIPSMAKE *

Now enter the password you want to put into Type a password for the user, and re-enter the password in the line Retype the password .

// Note: Note that when entering a password, you will not see it appear anywhere because to ensure security, but just enter it, enter it correctly.

Manage User on Windows by command in CMD Picture 2

In case I want to remove the password of that User account, I will use the following command:

  1. Syntax: net user ''
  2. Applying to the example we have the command: net user TIPSMAKE ''

# 5. Add User to the Administrator Administrator group

In case you want to authorize this User as Administrator, run the following command:

  1. Syntax: net localgroup administrators / add
  2. In the example, we have the command: net localgroup administrators TIPSMAKE / add

# 6. Temporarily turn off the User account on Windows

  1. Syntax: net user / active: no
  2. Applying to the example we have the command: net user TIPSMAKE / active: no

On the contrary, to re-enable User, use the following command:

net user TIPSMAKE / active: yes

# 7. The command to delete a Local User account on Windows

If you do not want to use a certain User, and you want to delete them, do the following

  1. Syntax: net user / del
  2. Applying to the example we have the command: net user TIPSMAKE / del

#8. Delete all commands in the CMD window

Well, if your CMD window is having too many lines of command, you can clean them up with the following command:

cls

Manage User on Windows by command in CMD Picture 4

# 9. Epilogue

Okay, above are the most commonly used commands to manage users on Windows using the command CMD. In addition to the commands that I just shared above, if you know any other commands, do not hesitate to share them below for you to learn more.

Hope this article is useful to you, wish you success!

4 ★ | 1 Vote

May be interested

  • USER_NAME function in SQL ServerUSER_NAME function in SQL Server
    this article will show you in detail how to use the function to handle the user_name statement in sql server with specific syntax and examples to better visualize and capture the function.
  • How to Add and Delete Users Accounts With Command Prompt in WindowsHow to Add and Delete Users Accounts With Command Prompt in Windows
    command prompt, which is essentially windows' version of apple's 'terminal' app, allows you to enter system-altering commands. while most user commands one might enter in command prompt are easier to carry out by simply performing the...
  • The quser (query user) command in WindowsThe quser (query user) command in Windows
    (applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
  • How to Add and Delete User Accounts with Command Prompt on WindowsHow to Add and Delete User Accounts with Command Prompt on Windows
    command prompt is basically a version of the 'terminal' application (apple) on windows, a program that allows us to enter system adjustment commands. while most commands users enter into command prompt simply execute the action itself (such as opening a folder), you can also use command prompt to quickly create (or delete) accounts. right on your computer!
  • SYSTEM_USER function in SQL ServerSYSTEM_USER function in SQL Server
    the system_user statement returns the username of the current user in the sql server database.
  • How to easily manage databases with phpMyAdminHow to easily manage databases with phpMyAdmin
    if you are new to sql and the command line, then the phpmyadmin tool is for you. phpmyadmin allows you to manage mysql and mariadb databases even without knowing how to write sql or use the command prompt.
  • Cmstp command in WindowsCmstp command in Windows
    the cmstp command installs or deletes the connection manager service configuration. if used without parameters, the cmstp command will install the service configuration with the default settings that are appropriate for the operating system and user rights.
  • Setx command in WindowsSetx command in Windows
    the setx command helps create or modify environment variables in a user or system environment, without requiring programming or script writing.
  • Instructions on how to create a new User on Windows 10Instructions on how to create a new User on Windows 10
    instructions on how to create a new user on windows 10. dividing many different user accounts on windows 10 will help you better manage your data and avoid unauthorized account hacking, sharing the user. users after creating you can grant them permission to limit certain activities
  • The CREATE USER command in SQL ServerThe CREATE USER command in SQL Server
    this article will show you in detail how to use the create user command in sql server, with specific syntax and examples to better visualize and capture commands.