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:

Step 3: Add as Admin

Now type:

net localgroup administrators [username] /add

Press Enter. Here's the example:


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

Just updated your iPhone? You'll find new features for Podcasts, News, Books, and TV, as well as important security improvements and fresh wallpapers. Find out what's new and changed on your iPhone with the iOS 17.5 update.


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 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.

use the sticky keys exploit on startup to open a sytem level cmd and reset the account password

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.


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)

You have a typo

new localgroup administrators username /add

should be "net localgroup administrators username /add" with no quotes of course.

Also, you can do this without logging into the computer. Just need to swap the utilman.exe with cmd.exe and you can create or change passwords for any user on the PC. Do this at work all the time when Hiren's won't work (EFI only)

_any help i cant get the admin password of my hint so its not letting me go in all folders settings , iv done a standard account how. can i get in my files i duno how to do a reboot disk its all new to

me_that download is zip is it a boot disk ? Coz if i download im unsure how unzip it

If you your system isn't on english languague
you have to "translate" the word administrators to your language (or to what mean adminitratos on your language)
administrators = english
administradores = portuguese

So, the command will be
"net localgroup administradores username /add

I have created user in windows 10 but it showing but is showing user is create but did not add in user group . Please suggest

Share Your Thoughts

  • Hot
  • Latest