Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How would I go about making an Administrator account (read not limited) from the command line in Windows. I have seen commands to the effect of


However it is unclear if an account created in this way would be an admin account or a limited account.

share|improve this question
up vote 36 down vote accepted

You are on the right track - It takes two CMD line options to do this

First -

net user /add [username] [password]

This creates the user account.

net localgroup administrators [username] /add

This adds the user to the Local Administrators Group

You have to execute both commands with elevated permissions (an administrative CMD prompt)

share|improve this answer
If your windows is not in English, you will have to translate "administrators" to your local language. You can type "net localgroup" to check the list of groups and see how it is called on your computer. – personne3000 Jun 22 '14 at 9:53
And what if you want to set "Password never expires" flag for the currently created user? How could you do that? – Saeed Neamati Aug 12 '14 at 7:34
Switches for net user are here: – user36350 Dec 26 '14 at 17:35

You must log in to answer this question.

protected by Community Aug 15 '14 at 11:40

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .