If you forgot the administrator password, it is no big deal to reset the password on a Windows 8 computer. This easy-to-follow, step-by-step guide shows how. The procedure described here also works for Windows 7, Windows Vista, and Windows XP, although I will use a Windows 8 boot DVD in the guide.

There are many ways to reset a forgotten admin password. There are free and commercial tools that all essentially do the same thing. However, as a proud DevOp or cool hacker, it is against your honor to use third-party tools. The guide below describes how to reset a password on a Windows 8 machine where you have no administrator password, in an easy way that even a typical iPad user could follow.

Before I start, I have to add a warning. Resetting a password of a Windows account always means that data that has been encrypted by Windows tools, such as the Encrypting File System (EFS) or stored Internet Explorer passwords, will be lost. You can avoid this by resetting the password of an account that hasn’t been used. For instance, you could enable the built-in administrator account to be able to secure the encrypted data first. If you used BitLocker to encrypt the system drive, you first have to unlock the encrypted Windows partition. If you didn’t use any Windows-based encryption you are save to reset your password with this guide.

The ultimate Windows 8 password reset guide

  1. Insert your Windows 8 boot DVD or boot flash drive, turn on the computer, and wait until you see the message Press any key to boot from CD or DVD. Follow the instructions precisely and press any key. (Note: If you don’t see this message, you probably have to change the boot drive order in the BIOS and/or disable Secure Boot. This usually is nothing for post PC users. Ask someone with a solid computer education.)
    Press any key to boot from CD or DVD
  2. Well done! The most difficult part is behind us. Windows 8 Setup will greet you and encourage you to configure your language settings. Press SHIFT+F10 to open a command prompt. (Note: I could shorten this part of my original post thanks of the tip given by PCFreak. See comment below.)
  3. Here you are. The unlimited possibilities of the Windows command prompt are now at your fingertips. Type copy d:\windows\system32\sethc.exe d:\. (Note: If you get the error message The system cannot find the specified path, you probably have an unusual drive configuration. Replace “d:” in the command above with different drive letters until the error message disappears.)
  4. Now comes the real hacking. Type copy /y d:\windows\system32\cmd.exe d:\windows\system32\sethc.exe. This replaces the Sticky Keys app on your Windows 8 machine with the command prompt. More later about this.
    Reset Windows 8 password with the Sticky Keys trick
  5. Close the Language setup windows by clicking the X in the upper right corner and then confirm that you want to cancel the Windows installation. Yes, this guide can also be followed by post Windows users.
    Cancel Windows installation
  6. Wait until you see the Windows 8 Lock Screen.
    Windows 8 Lock Screen
  7. Hit the SHIFT key five times. Yes, we are doing magic here. No wand is needed, though. We replaced the Sticky Keys app that helps people who can’t press CTRL-ALT-DEL easily. You should now see the command prompt.
    Hit SHIFT five times
  8. Type net user. This will produce a list of user names on the Windows 8 computer. (Note: The Windows 8 Lock Screen will reappear while you hack along.)
    List available user accounts
  9. Choose the user name for which you want to reset the password and type net user user_name new_password, where user_name has to be replaced with your user name and new_password, ah, I think you will figure this out yourself. (Note: If your user name or password contains blanks, you have to set it in quotes: net user “Tim Cook” “I will never forget my Windows 8 password again”).
    Set new password
  10. Congrats! You just reset your Windows 8 password. Close the command prompt (I hope you remember how) and log on with the new password (I hope you didn’t forget it again).

You might want to restore the Sticky Keys app (sethc.exe). For this, you have to follow the procedure above again until step 6  step 2 and use this command in step 7 : copy /y d:\sethc.exe d:\windows\system32\sethc.exe.

Subscribe to 4sysops newsletter!

You can now bookmark this page so you can come back in a few months when you have again forgotten your password, or you could create a password reset media right away. I like the first option.

  1. mahender g (Rank 1) 9 years ago

    Iam beginner in this administration field.this topic is very helpful to me.

    I have some doubts

    how can we edit system admin password underwork group mode with sam files and if there are no other accounts on that system?

    Pl explain all the possible tips?

  2. For the procedure above you don’t need an account. This works because you edit the sam file offline from a second operating system. If no account exists where you could reset the password you have to offline enable the built-in admin account.

  3. Jim 9 years ago

    This is so freaking cool! I was JUST looking for a little portable app to add to my PE disk, but I think I’m just gonna script this method… so if you don’t want to bookmark this page OR create reset media… yeah, put it in a script and never type it again… By the way Michael Pietroforte, I’ve got to say that I’ve come across your page a couple times, and every time I do, I learn something! Usually one of those things I’ve had trouble with all day… Thanks for making this page AND knowing about what you write about BEFORE you write it!

  4. Jim, thanks!

  5. s 8 years ago

    I followed all the steps and when pressing shift x5, it pops up the cmd prompt but then disappears quickly, any ideas?
    Note, I’m doing this on a tablet if that makes any difference
    cheers, S

  6. Evan 8 years ago

    Hi, I have a quick question. I have yet to try this, and to be honest, I’m not entirely sure yet if I will end up using this or not, but before I even try, does this still work if the computer owner has disabled sticky keys? I was going to try this on a friend’s computer, but as gamers, I know for a fact one of the first things he did when he got the computer was disable sticky keys. Thanks in advance!

  7. Evan, I didn’t try it, but I guess it won’t work if Sticky Keys are disabled. In this case you can try the Ultiman tick

  8. Bradavon 8 years ago

    I’d have thought Sticky Keys were a Per User and not Per Computer setting, it wouldn’t make sense for them to be Per Computer (i.e. They’d be enabled/disabled whoever logged in).

    In other words, the user needs to be logged in first for Sticky Keys to be disabled. It would also make sense Sticky Keys worked regardless during the login process, for the reason it’s designed to work for.

    Give it a try, Restart the PC, leave Sticky Keys disabled and press Shift five times. Does it work?

  9. Wolfgang Pfeiffer 8 years ago

    Thanks for the work

    Unless I missed something – and this sort of stuff: copy back and forth and vice versa usually is the sort of procedure I’m prone to messing up… 🙂 … But IINM if you do the last step 10, i.e.

    copy /y d:\sethc.exe d:\windows\system32\sethc.exe

    then you actually copy cmd.exe a second time to “d:\windows\system32\sethc.exe”. Because before – while repeating step 1 to 6 – you destroyed your backup of d:\.seth.exe by repeating step 3:

    copy d:\windows\system32\sethc.exe d:\.

    because this time d:\windows\system32\sethc.exe (see step 4) meantime actually is cmd.exe

    Sorry if I missed anything … 😉

  10. Wolfgang, in step 3 you copied the original sethc.exe to d:\. So you if you copy back to system32 at the end of entire procedure, you should be fine.

  11. edwin 8 years ago

    i failed to log in in my laptop because i lost my password

  12. Danish 8 years ago

    I am unable to see command prompt in win 8 lock screen please help.

  13. StevenB 8 years ago

    Worked the first time! Thanks…

  14. Frans 8 years ago

    Procedure to replace password works great! But can’t restore sethc.exe. In the header of the cmd at step 7 it’s displaying: “The system cannot find message text for message number 0x2350 in the message file for Application. Not enough storage is available to process this command.” After typing the copy cmd: “The system cannot find the file specified.”

    What I think Wolfgang means with his comment is that when you follow procedure at step 3 for the second time, you overwrite the backup of the original sethc.exe. It’s asking to overwrite. I did yes, but I think I now lost my original sethc.exe file too…

  15. Frans, it sounds as if you trying to copy a file to the X drive where Windows PE is located. Make sure, you are working on the correct drive.

  16. Wolfgang Pfeiffer 8 years ago

    “What I think Wolfgang means with his comment is that when you follow procedure at step 3 for the second time, you overwrite the backup of the original sethc.exe.”

    Exactly what I wanted to say, Frans, except that you did it in a human readable form. My explanations weren’t very readable, so I’ll give it a second try:

    The crucial points is step 3 …

    So: at the end of the first run of all commands (steps 1-10) you have the backup of seth.exe on d:\
    … right?
    But if you start all over again, as recommended, until step 7, then you actually destroy your backup on d:\seth.exe by repeating step 3 in the second run. Because of running a second time

    copy d:\windows\system32\sethc.exe d:\.

    Remember you actually changed d:\windows\system32\sethc.exe to d:\windows\system32\cmd.exe in the first run …

    This second time doing step 3 the seth.exe you copy to d:\ actually is cmd.exe.

    To put it differently, Michael:
    Step 10 in your howto, if I’m not mistaken, should say:

    “You might want to restore the Sticky Keys app (sethc.exe). For this, you have to follow the procedure above again until step 2 and use this command in step 7: copy /y d:\sethc.exe d:\windows\system32\sethc.exe.”

    See? – “until step 2” instead of “until step 6”
    Michael, I’ve won – admit it … 🙂

    And Frans, hope you find your seth.exe in some installation media again. Heaps of luck for that!

    And Happy New Year to everyone out there … 😉

  17. PCFreak 8 years ago

    That’s why I prefer the registry way, it simply does not change system files!

  18. Anonymous 8 years ago

    PCFreak : “That’s why I prefer the registry way, it simply does not change system files”

    Sorry, but no. I’m coming from Linux, and I don’t understand too much about the Windows registry, except one thing: Be extremely careful while doing changes to the registry. From what I read so far about it, is, that if one sets one or two parameters wrong in the Windows registry, this can bring users in extreme difficult situations on Windows. Correct?

    But even a Windows beginner like me understands a simple copy file_a to file_b. It’s true, one has to be very careful even with procedures like this. But until I have a solid knowledge of the registry, I’ll try to keep my hands off of it.

    In short: I know relatively well what I don’t know – the Windows registry is part of the package … :=)

    Happy New Year! … :=)

  19. Bruce Roberts 8 years ago


    Please recognize that Wolfgang is right, and that your steps to restore the Sticky Keys app need to be rewritten to prevent people losing the original file completely (as Frans discovered).



  20. Oh yes, I see it now. Thanks for the hints! The sentence next to the last was wrong. To restore the file you only have to follow the procedure until step 2 not step 7. This is hopefully correct: For this, you have to follow the procedure above again until step 6  step 2 and use this command in step 7 : copy /y d:\sethc.exe d:\windows\system32\sethc.exe.

  21. Frans 8 years ago

    I managed to copy sethc.exe from another W8.1 installation and restored it with the procedure until step 2. All is fine now, thnx all!

  22. rave 8 years ago

    where can i get a boot cd or dvd??

  23. Jamsheed Rahman 8 years ago

    Thanks a lot.
    Its working fine……..


  24. Lee 8 years ago

    Thankyou! This worked great for a non-domain home pc! On a “abondoned” domain pc, I could see “Administrator” and “Guest” but not “Valorlocal–admin account” when typing ‘net user’ command, I successfully changed the Administrator password, however, when hitting the back button or backspace “Administrator is not visible”. I tried the new password on “Valorlocal” and it doesn’t work. I went back to the command prompt and set Admin to “active”, still no dice. I’m thinking the security is tighter on a domain. I think its time to order OEM Recovery DVD’s from Dell and call it a draw.

Leave a reply

Please enclose code in pre tags

Your email address will not be published.


© 4sysops 2006 - 2023


Please ask IT administration questions in the forums. Any other messages are welcome.


Log in with your credentials


Forgot your details?

Create Account