Download ArticleDownload Article

Do you need to add new users to a Windows PC? If you're writing a script, signed in remotely, or just prefer the command line, you can use simple commands to add new users, set passwords, and even grant administrator permissions using CMD, or the command prompt. This How.com.vn guide will teach you the easiest way to add local users to Windows from the command prompt.

Things You Should Know

  • You'll need to run the Command Prompt as an administrator to add and manage users.
  • Use the command net user username password /add to create a new user from the command line.
  • Or you can just create user account without password and add password later using command net user username * and you will prompted to write password and confirm it does not display when typing.
  • To give a new user administrative rights, use net localgroup administrators username /add.
  1. How.com.vn English: Step 1 Open Start icon.
    Click the Windows logo in the bottom-left corner of the screen.
  2. How.com.vn English: Step 2 Search for Command Prompt.
    Type in command prompt to do so.
    Advertisement
  3. How.com.vn English: Step 3 Right-click icon Command Prompt.
    It should be at the top of the Start window. Right-clicking it prompts a drop-down menu.
  4. How.com.vn English: Step 4 Click Run as administrator.
    This is in the drop-down menu.
  5. How.com.vn English: Step 5 Click Yes when prompted.
    Doing so opens the Command Prompt window.
  6. Step 6 Type in the "add user" command.
    The "add user" command uses the net user username password /add format, where "username" is the name you want to use for the user and "password" is the password you want to assign to the account.
    • For example, to add a user named "Michael" with the password "hello123", you would enter net user Michael hello123 /add here.
    • If you don't want to use a password for the account, don't type in a password—just enter net user username /add instead.
  7. How.com.vn English: Step 7 Press ↵ Enter.
    Doing so runs the command and begins creating the user account.
    • Once you see the phrase "The command completed successfully" appear, your user has been added.
  8. How.com.vn English: Step 8 Grant the user administrator permissions.
    If you want to turn the user account into an administrator account, type net localgroup administrators username /add into Command Prompt—making sure to replace "username" with the name of the account you want to change—and press Enter.
    • For example, to make a user account named "Michael" an administrator, you would type in net localgroup administrators Michael /add and press Enter.
  9. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I open a laptop password?
    How.com.vn English: Community Answer
    Community Answer
    Access that account to reset your password.Boot your computer and press F8 repeatedly.Access Safe Mode.Key in "Administrator" in Username, with no password.Go to Control Panel, then User Accounts.Select the account you want to reset the password.Change the password.
  • Question
    When I type user name and password it says access is denied. What should I do?
    How.com.vn English: Community Answer
    Community Answer
    You have to run command prompt as an administrator. Right click the icon and click run as administrator.
  • Question
    Why am I seeing a message that says my local group isn't there if I am being stopped at the point of entering the command line into the second stage of this process?
    How.com.vn English: Community Answer
    Community Answer
    Check which language you are using. The local group is probably a bit different.
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

      • Using Command Prompt to create a user will always create a standard (non-administrator) user by default.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • If you aren't on an administrator account, you cannot use Command Prompt to add a user.
      Advertisement

      About This Article

      How.com.vn English: Jack Lloyd
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for How.com.vn. 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 1,120,882 times.
      How helpful is this?
      Co-authors: 45
      Updated: December 21, 2023
      Views: 1,120,882
      Categories: Command Prompt
      Thanks to all authors for creating a page that has been read 1,120,882 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement