64

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:

net user USERNAME PASSWORD /add

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

Zombo
  • 1

1 Answers1

100

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)

EBGreen
  • 9,655
Chris E. Avis
  • 1,927
  • 1
  • 12
  • 5