PDF download Download Article
Easily manage Windows user accounts using Command Prompt with this simple guide
PDF download Download Article

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 action itself (e.g., opening a folder), you can use Command Prompt to quickly create (or delete) user accounts right from your desktop!

How to Delete & Add Windows Users with Command Prompt

  1. Type “Command Prompt” into the Start menu’s search bar.
  2. Right click the “Command Prompt” icon and click “Run as administrator.”
  3. Click “Yes” on the pop-up, then click on the Command Prompt window.
  4. To add a user account, type net user (username) (password) /add and hit Enter.
  5. To delete a user account, type net user (username) /delete and hit Enter.
Part 1
Part 1 of 2:

Accessing the Command Prompt

PDF download Download Article
  1. Open your PC's Start menu. You can do this by clicking the Start button in the bottom left corner of your screen. Please note that, in order to add or delete users, you'll need to be on an Administrator account.
    • You can also tap the Win button to do this.
  2. The Command Prompt app should appear at the top of the relevant search results.
    • You can also hold Win and tap X to bring up the quick-access menu with Command Prompt in it.
    Advertisement
  3. This will prompt a drop-down menu.
  4. You won't be able to access Command Prompt in Administrator mode if you're using a guest account.
    • If you're using the quick-access menu, just click the "Command Prompt (Admin)" option. Do not use the regular Command Prompt option.
  5. This will allow you access to Command Prompt as an administrator.
  6. Advertisement
Part 2
Part 2 of 2:

Adding and Deleting Users

PDF download Download Article
  1. This will make sure that your cursor is currently active on the Command line.[1]
  2. To do this, type net user (username) (password) /add and tap Enter when you're done. This will add a new user to your account!
    • Replace the information in parentheses with an actual username and password; be sure to exclude the parentheses.
  3. To do this, type net user (username) /delete and tap Enter when you're done. Your selected user account should be gone!
    • You will see a line that says "The command completed successfully" after successfully adding or removing an account.
  4. Now you know how to add and delete users with the Command Prompt app!
  5. Advertisement

Community Q&A

Search
Add New Question
  • Question
    I forget my Lenovo laptop password. How can I delete the admin account?
    Community Answer
    Community Answer
    If you are referring to the BIOS password then you need to reset the CMOS. You should be able to find that by searching how to reset the BIOS on whatever model laptop you have. Otherwise, if you are talking about a local administrator, you can boot to a live CD such as OPH Crack and find out what the password is.
  • Question
    When I type "net username/add," it returns "access denied." What am I doing wrong?
    Community Answer
    Community Answer
    You need to have administrator rights to execute this command. You need to run the command prompt as administrator.
  • Question
    How can I resolve a syntyax error in a command?
    Community Answer
    Community Answer
    Check your spelling and formatting. Command Prompt is very sensitive to both of these factors, so making a single error (e.g., missing a space or leaving a parenthesis in) will result in a syntax error.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

  • If you don't choose "Run as Administrator" when running Command Prompt, you will not be able to add or delete user accounts.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

Warnings

Advertisement

You Might Also Like

Change the Computer Time and Date Using the Command PromptChange the Computer Time and Date Using the Command Prompt
Install an Operating System on a Brand New ComputerInstall an Operating System on a Brand New Computer
Clear up Unnecessary Files on Your PC Remove Unneeded & Unused Files in Windows 10 & 11
Change Directories in Command Prompt Navigate to a Different Folder in the Command Prompt
Format a USB Using Cmd Format a USB Using CMD (Command Prompt)
Change a Computer Password Using Command Prompt Change a Windows Password Using Command Prompt
Reboot from Command Prompt on WindowsReboot from Command Prompt on Windows
Use Windows Command Prompt to Run a Python FileUse Windows Command Prompt to Run a Python File
Run a Batch File from the Command Line on Windows Run a Windows Batch File from the Command Line (CMD)
Open a Folder in Cmd Open a Folder in Command Prompt (CMD)
Add Users from CMDAdd Users from CMD
Open Command Prompt with a Keyboard Shortcut (Windows 8, 8.1, and 10)3 Ways to Open Command Prompt with Keyboard on Windows
Open the Command Prompt in Windows5 Simple Ways to Open the Command Prompt in Windows
Watch Star Wars on Command Prompt Watch Star Wars via Telnet: Windows CMD & Mac Terminal
Advertisement

About This Article

Jack Lloyd
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for wikiHow. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 583,198 times.
How helpful is this?
Co-authors: 26
Updated: June 28, 2024
Views: 583,198
Categories: Command Prompt
Article SummaryX

1. Type "cmd" into the Windows search bar.
2. Right-click Command Prompt.
3. Click Run as administrator.
4. Click Yes.
5. Type "net user NEWUSERNAME NEWPASSWORD /add" and press Enter.
6. Type "net user USERNAME /delete" and press Enter to delete.

Did this summary help you?

Thanks to all authors for creating a page that has been read 583,198 times.

Reader Success Stories

  • London Z'rath

    London Z'rath

    Aug 4, 2017

    "It was very easy to understand and to work with."
    Rated this article:
Share your story

Is this article up to date?

Advertisement