I want to change a user from normal user to administrator in command-line. Is this possible? What command should I use?


Net group is the command your seeking.

add user to local administrator group:

net group administrators /add adminguy
  • I presume you'll be prompted for the username/password of an actual admin before it succeeds? – David Mackintosh Oct 18 '10 at 7:38
  • No it wont prompt you for username/password. It checks the userlevel of the cmd window your typing it in. So in windows 7 you might have to right-click "command" and choose run-as administrator. Or put it in a bat script and run the bat script as administrator. – Espennilsen Oct 18 '10 at 9:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.