Change a user role from command-line in Windows

command-line-interfacewindows 7

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

Best Answer

Net group is the command your seeking.

add user to local administrator group:

net group administrators /add adminguy