How 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!

Access Command Prompt

Picture 1 of How to Add and Delete User Accounts with Command Prompt on Windows

Open the Start menu on your computer. You can do this by clicking the Start button in the lower left corner of the screen. Please note that if you want to add/remove users, you need to log in with an Administrator account.

You can also press the key ⊞ Winto open the Start menu.

Picture 2 of How to Add and Delete User Accounts with Command Prompt on Windows

Type "Command Prompt" into the Start menu search bar. The Command Prompt application will appear at the top of related search results.

You can also hold down the ⊞ Win+ key combination Xto open the quick access menu with Command Prompt.

Picture 3 of How to Add and Delete User Accounts with Command Prompt on Windows

Right click on the Command Prompt icon. A drop-down menu will appear.

Picture 4 of How to Add and Delete User Accounts with Command Prompt on Windows

Click "Run as administrator" in the drop-down menu. You will not be able to access Command Prompt in Administrator mode if you only use a guest account.

If you're opening the quick access menu, just click the "Command Prompt (Admin)" option. Do not use regular Command Prompt options.

Picture 5 of How to Add and Delete User Accounts with Command Prompt on Windows

Click "Yes" in the pop-up window. You will access Command Prompt as administrator.

Add and delete users

Picture 6 of How to Add and Delete User Accounts with Command Prompt on Windows

Click the Command Prompt window. This helps you make sure the mouse pointer is active on the Command line.

Picture 7 of How to Add and Delete User Accounts with Command Prompt on Windows

More account. To proceed, type net user (tên người dùng) (mật khẩu) /addand press ↵ Enter. New users will be added to your account!

Replace the information in parentheses with the username and password you want to use; Remember to remove the parentheses.

Picture 8 of How to Add and Delete User Accounts with Command Prompt on Windows

Delete the account. To proceed, type net user (tên người dùng) /deleteand press ↵ Enter. The account you selected will disappear!

You will see the message "The command completed successfully" after successfully adding or removing an account.

Picture 9 of How to Add and Delete User Accounts with Command Prompt on Windows

Exit Command Prompt. So you know how to add and remove users on the Command Prompt application!

Update 19 June 2024
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile