How To: Create an Admin User Account Using CMD Prompt (Windows)

Create an Admin User Account Using CMD Prompt (Windows)

This is a quick tutorial on how to create a new administrator account on a Windows computer.

Step 1 Open CMD Prompt...

On Windows XP, click the Start button, then open up Run..., and type in "cmd" and click OK.

On Windows Vista or Windows 7, click Start, search for "cmd" and press Enter.

Step 2 Add username and password

Now, in the command prompt window, type:

net user /add [username] [password]

Press Enter. Here's an example of what it should look like:

How to Create an Admin User Account Using CMD Prompt (Windows)

Step 3 Add as admin

Now type:

new localgroup administrators [username] /add

Press Enter. Here's the example:

How to Create an Admin User Account Using CMD Prompt (Windows)

Done!

You should now have a new Admin Account on your PC!

21 Comments

You'll need to be logged in as an administrator for this to work.

Well that defeats the purpose, why would you use command prompt to do that when its simpler to do it in control panel?

You always need to be on an admin account to manage accounts like this... even when working through the gui. Also, this is useful for creating logon scripts.

No purposes defeated here at all.

There is a way to use cmd to create admin from a normal user. No hacks needed.

you retarded idiot where talking about if you have no access in the user , password protected account!!

you can access command prompt as an administrator in login screen. :)

i am having two accounts one is administrator and Standard user i forgot administrator password and i followed the above steps by logging to standard user but still i am unable to change the admin password kindly please help ..

As Bryan says above, you will need administrator privileges which are not available to a standard user. Sorry.

Would this work for a work/school computer?

Depends on your privilege/access rights.

HOWEVER, Doing/Trying this will most likely (almost without a doubt) be a breach of your school/office rules & regs.

Don't get yourself kicked outa' school dude! So not worth it!

ok guys so i forgot my password to my computer and the open account isnt administrative how do i fix this?

Not going to go into registry stuff here (might write a short article for that) but try, Ophcrack. There are plenty of other password recovery tools available but this one has a good rep.

there's a typo in the instructions you put when showing how to give administrator privileges, you put new instead of net.

Greetings,

There is another way to add an admin account to a Windows computer. With physical access to the box and a Linux live CD you can have Windows give you a command prompt at the next boot up.

At the login screen when you get command prompt it will be administrator level, you can then add change or delete any other account on the computer. How to Hack Windows 7 Admin Account Password with Windows Magnifier Hack.

excelent article help me with destroyed user account and as always the googling for resolving my problem has worked :)

Ok, so first things first, my english is bad so i apologise, I'm gonna show you how to fix error 5.So this is what i did in my school, I puted Backtrack Linux onto my USB flashdrive and inserted it into school computer, next I restarted the computer and opened BIOS where I've selected Linux OS. I replaced cmd file with sticky keys. Then I have restarted the computer and opened Windows OS. Then when the log-on screen came, I pressed shift 5 times and it opened cmd where I've had full administrators access and did the the whole procedure you just read about before coming to comment section. So when you do this you have full local admin privileges, you can easily get server admin, but about that later. Hope I've helped with error 5. Peace.

Helpful discussion , I learned a lot from the details ! Does someone know where my business might be able to obtain a fillable a form example to work with ?

Here's a quick tip! If you have a windows 7 like i do, restart your computer, the it will take you to the log in screen. But don't sign in! Press the "Shift key" 5 times, the it will open the command thing. Sense your not logged on, it will allow you to create another account. Even if YOUR account is not an admin. (My English is bad sorry)

Share Your Thoughts

  • Hot
  • Latest