How to reset a Windows 8 password

-1+1 (+1 rating, 1 votes)

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.

Michael PietroforteMVP By Michael Pietroforte - Wed, March 6, 2013 - 51 comments google+ icon

Michael Pietroforte is the founder and editor of 4sysops. He is a Microsoft Most Valuable Professional (MVP) with more than 30 years of experience in system administration.

Articles in this series

Reset Windows password

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.

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.

Series NavigationReset Windows 8.1 password with the free tool ntpasswd - Forgot the administrator password? The Sticky Keys trick

Your question wasn't answered? Please ask in the new 4sysops forum!

51 Comments- Leave a Reply

  1. Ian says:

    This doesn’t work on Connected/Microsoft Accounts :)

  2. PCFreak says:

    To get a command prompt on the Windows 8 Setup DVD, why not just press SHIFT + F10 ? This directly opens a command prompt.

    I also recommend not to copy/replace system executables. There is a better way by adding a registry key to the registry of the offline system with the reg command.

    I describe the process in this video on Youtube

    You can adapt this to your way with 4 steps.

    1. Load the offline registry hive
    e.g. REG LOAD “HKLM\TEMP” D:\Windows\System32\config\SYSTEM

    2. Add a key that replaces utilman.exe (or if you like sethc.exe)

    REG ADD “HKLM\TEMP\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Utilman.exe” /v Debugger /d “cmd.exe /c start “””Utilman Exploit by PCFreak””” cmd.exe /s /k REG DELETE “””HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Utilman.exe””” /f && @echo Enjoy!” /f”

    3. Unload the Hive

    4. Reboot your machine and then press on the network icon on the start screen and then on the next screen on the Ease of access button.

  3. Ian, that is correct. Tanks for the hint. I will post a workaround for Microsoft accounts in the coming days.

  4. Rory Schmitz says:

    I know someone who has forgotten their password of their connected account, which is a local admin. They’ve been able to reset their password online from a different machine and the original machine is connected to the Internet, but their new password won’t work. What gives? There’s another local, non-connected, account, but it’s not a local admin. Are there any options with the NET USER command to make that account a local admin?

  5. PCFreak, thanks for the tip about SHIFT+F10! Didn’t know that. I shortened the article accordingly. As for editing the registry, I am unsure if this wouldn’t cause more trouble than just replacing sethc.exe.

    Rory, I will cover connected accounts in my next post.

  6. Ian says:

    Looking forward to your next article Michael!

    PCFreak is correct that you can hijack the launching of sethc or utilman with IFEO entries, but yeah, either way you’re making complex changes. The subjectively nice thing about IFEO is that it avoids any potential permission issues on the files in system32, but at the same time you’re in WinRE and people are often more comfortable changing file stuff than registry stuff.

    Some other side information: there’s a Microsoft Account Troubleshooter that you would think could be helpful in a case like Rory’s, though last I used it it couldn’t be run from the built-in Administrator account, making it pretty useless in diagnosing why I couldn’t sign in to the connected account. There is though an event log that tracks the connected account / syncing stuff that proved loosely helpful in the past. Setting-sync I think?

  7. Bruce Roberts says:

    “This replaces the command prompt on your Windows 8 machine with the Sticky Keys app.”

    You must mean that it replaces the Sticky Keys app with the command prompt.

    “Required fields are marked *”

    There are none!

  8. Ian, thanks!

    Bruce, thank you! I mixed up the two. I corrected it now. What do you mean with “required fields”?

  9. Bruce Roberts says:

    When entering comments here, name and email have no “*”.

  10. Bruce, thanks for the hint. I corrected it.

  11. Paul says:

    AWESOME!!!!!! Can’t say thanks enough!

  12. Danica Jandoc says:

    How can I reset my password if I do not have the Windows 8 disk?

  13. Danica, most methods to reset a password require a boot disk. This post lists a few other options.

  14. Danica Jandoc says:

    Thanks. But I still don’t know what to do. I don’t have a boot disk. Where can I get one?
    Some help, please?

  15. Angela says:

    I have an HP Pavillion dv9000 laptop. My admin, regular account, and guest account have been locked out because the HP help desk told me to type the ‘netuser…’ during the safe mode command prompt. When I tried the guest account (which requires no password), I receive an Sens error (system event?). I have been running the restore since Sunday morning, and it still states ‘Finalizing restore files’. How long does this take? Should I use my System Recovery DVD and restore it to the factory state, and use my external drive to download my info?
    All this occurred because I was trying to load the latest service pack 2. I’m ready to jump ship and buy an iPad :(

  16. Angela, a system restore usually only takes a couple of minutes. So I think something went wrong. You could try another restore point.

  17. Angela says:

    Thanks, Michael!!
    It actually finished Wednesday morning…couldn’t believe it took 4 days!! My coworker provided a Hivens disk, and it worked! I created a new profile, and was able to change the password. The old profile is corrupt, but I could still access the data via Explorer, and copied the files to the guest account. Also created a backup HPAdmin account just in case.

  18. Jacky says:

    Hi, I want to THANK YOU A LOT ! It works perfectly. The Shift pressed 5 times is really magic ! I tried a lot of other sw without a ny success (boot from USB, CD, etc), no way. You procedure is very simple and efficient.May I ask what happens if we do not apply the Sticky Key procedure : “You might want to restore the Sticky Keys app (sethc.exe). For this, you have to follow the procedure above again until step 6 and use this command in step 7: copy /y d:\sethc.exe d:\windows\system32\sethc.exe” ? Thanks again, magician !

  19. Rocky Patel says:

    My cmd is showing acces denied 0 file Copied while coping sethc.exe to c:\

  20. Rocky, did you boot from a DVD?

  21. bradavon says:

    Thanks for the guide Michael.

    A couple of questions please:

    1. Linked to a Windows 8 Microsoft connected user account is a regular local admin account (usually admin), won’t ‘net user USERNAME PASSWORD’ work if you type the local admin username instead of the Microsoft account username?

    2. Rory Schmitz above has done what you describe in your article for resetting Windows 8 Microsoft account passwords and it hasn’t worked.

    Does resetting a Microsoft account’s (i.e. – Hotmail/ password at definitely then also reset it on the Windows 8 login screen?

    Assuming you have Internet access.


  22. bradavon, the procedure described here only works for local accounts. I wrote another article about resetting a Microsoft account password.

  23. bradavon says:

    Hello Michael,

    Thanks. I know, that’s what I’m referring to with Rory Schmitz’s comment in this article above :-). Rory has followed your instructions for Microsoft accounts but it hasn’t worked?

    I was also wondering if you enter NET USER LOCALUSERNAME NEWPASSWORD would it work. When I logged into Windows 8 for the first time using my Hotmail address Windows 8 also created a local username based on my first name, inside C:\USERS I have a folder called FRED. This is linked with my Microsoft account.



  24. I don’t know why resetting the Microsoft account didn’t work bradavon. Perhaps the second machine wasn’t connected to the internet?

    I think you are working with a Microsoft account and net user is therefore useless. You can enable the built-in admin account and then create a new local account.

  25. bradavon says:

    Thanks Michael.

  26. mahender g says:

    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?

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

  28. Jim says:

    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!

  29. s says:

    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

  30. Evan says:

    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!

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

  32. Bradavon says:

    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?

  33. Wolfgang Pfeiffer says:

    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 … ;)

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

  35. edwin says:

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

  36. Danish says:

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

  37. StevenB says:

    Worked the first time! Thanks…

  38. Frans says:

    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…

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

  40. Wolfgang Pfeiffer says:

    “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 … ;)

  41. PCFreak says:

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

  42. Anonymous says:

    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! … :=)

  43. Bruce Roberts says:


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



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

  45. Frans says:

    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!

  46. rave says:

    where can i get a boot cd or dvd??

  47. Jamsheed Rahman says:

    Thanks a lot.
    Its working fine……..


  48. Lee says:

    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.

Please share your thoughts in a comment!


Lost your password?