Manage Users from Command Prompt

If for some reason you cannot access the Control Panel window, you can manually execute these commands from the command line (DOS prompt) in order to perform common user account related tasks. These commands work on Windows 2000, XP, Vista, and 7.

Add a new LOCAL user:

net user username userpassword /ADD


net user John fadf24as /ADD

Add a new DOMAIN user:

net user username userpasswd /ADD /DOMAIN


net user John fadf24as /ADD /DOMAIN

Rename a user account:

wmic useraccount where "name='username' " rename new_username


wmic useraccount where "name='techblogger' " rename win7techblogger

Add existing user to administrator group:

net localgroup group_name UserLoginName /add


net localgroup administrators John /add