How can I create a user account using Windows command prompt?

julien croy March 15, 2013


How can I create an account using the command prompt window? The cmd window would be running as admin.


  1. Tsf O
    September 5, 2013 at 2:37 pm

    Go to start>run>. Type in "cmd" without quotes a black screen will appear.
    To add a user to your computer, type in "net user username here password goes here /add EXAMPLE: net user geekman 12345 /add
    To delete a user on your computer, go to start>run>type in "cmd" without quotes. A black screen will appear.
    Here is example:net user geekman /del
    Another EXAMPLE:net user geekman = user /del it will say "The command completed successfully." without quotes type in "exit" without quotes to exit command prompt "cmd"

  2. yudics
    April 7, 2013 at 3:02 am

    You can try this:

    Net userAdds or modifies user accounts or displays user account information.

    net user [UserName [Password | *] [options]] [/domain]

    net user [UserName {Password | *} /add [options] [/domain]]

    net user [UserName [/delete] [/domain]]

    Specifies the name of the user account to add, delete, modify, or view. The name of the user account can have as many as 20 characters.
    Assigns or changes a password for the user's account. Type an asterisk (*) to produce a prompt for the password. The password is not displayed when you type it at the password prompt.
    Performs the operation on the domain controller in the computer's primary domain.
    Specifies a command-line option. The following table lists valid command-line options that you can use.

    March 25, 2013 at 12:01 pm

    Hello, the net user command can accomplish that and more. The following is a link explaining what this command can do:

  4. Joel Thomas
    March 24, 2013 at 9:40 am

    open command prompt and type in the following

    net user /add useraccountname mypassword

    net localgroup administrators useraccountname /add

    net share concfg*C:/grant:useraccountname,full

    net user useraccountname *

  5. EL
    March 18, 2013 at 6:17 am

    Neat! I never knew that I always wanted to know that...

  6. Nitesh Badala
    March 16, 2013 at 12:31 pm


    run cmd and write following- user /add useraccountname mypassword
    2net localgroup administrators useraccountname /add share concfg*C:/grant:useraccountname,full

  7. julien croy
    March 15, 2013 at 7:28 pm

    Hi, Thanks for the huge amount of responses, il let you know which method works the best. So many responses so little time...Il make sure to vote to :). Thanks

    • Rajaa Chowdhury
      March 16, 2013 at 2:02 am

      I assure you, that the end result will be the same in all the methods. It really intrigues me that when there is a simple GUI method available, why bother with cryptic command line. It is like re-inventing the wheel.

    • Bruce Epper
      March 16, 2013 at 1:34 pm

      Rajaa: the reason is probably similar to the one I had over a decade ago when I did the same thing. One script to create/disable/delete accounts across multiple domains when necessary as well as different systems (Microsoft, Novell and Solaris). My script created an account on the Novell servers which were used for the original in-house ERP system and granted the proper access to the associated shared folders for the user's department, then did the same thing for the Windows systems they needed access to (SQL Server apps for certain departments, shared folders (again), email, etc), and later for the Solaris systems (new ERP system) for developer access when required. Fewer mistakes when creating everything and all bases are covered with one command-line script instead of having to use multiple tools on multiple systems increasing the possibility of errors and the script ends up taking far less time to accomplish the entire set of tasks so I could be more productive.

  8. Yashodhan Bhatt
    March 15, 2013 at 5:09 pm

    Go for this step by step tutorial....

  9. Amit S
    March 15, 2013 at 11:39 am

    You got the way of creating user account form command prompt, but I will recommend you to create through mmc console, right click on my computer and go to manage menu.

  10. fallen heart
    March 15, 2013 at 11:10 am

    you can use this command to create and handle user accounts in windows

  11. Chinmay Sarupria
    March 15, 2013 at 10:46 am

    1) Type CMD in Start screen and hit Ctrl + Shift + Enter keys to open elevated prompt. Click Yes for the confirmation prompt.
    2) In the Command Prompt, type the following command and hit enter key:
    net user username password /add

    Replace username with any name and password with your password.

  12. Alan Wade
    March 15, 2013 at 8:48 am

    It can be done as Junil has explained but why dont you just go to the User Panel via Control Panel. You have me intregued.

  13. Nevzat A
    March 15, 2013 at 7:49 am

    It's explained at the following Microsoft Technet article :

  14. Junil Maharjan
    March 15, 2013 at 5:53 am

    Open a 'cmd' prompt through run. I have not tried through use of 'command' although I believe it would work the same.

    Type the following:

    net user /add useraccountname mypassword

    net localgroup administrators useraccountname /add

    net share concfg*C:\/grant:useraccountname,full

    net user useraccountname *

    check this link for more info

Ads by Google