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 Pietroforte

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 IT management and system administration.

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.

Win the monthly 4sysops member prize for IT pros


  1. Ian 5 years ago

    This doesn't work on Connected/Microsoft Accounts 🙂


  2. PCFreak 5 years ago

    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. Michael Pietroforte 5 years ago

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


  4. Rory Schmitz 5 years ago

    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. Michael Pietroforte 5 years ago

    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 5 years ago

    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 5 years ago

    "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. Michael Pietroforte 5 years ago

    Ian, thanks!

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


  9. Bruce Roberts 5 years ago

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


  10. Michael Pietroforte 5 years ago

    Bruce, thanks for the hint. I corrected it.


  11. Paul 4 years ago

    AWESOME!!!!!! Can't say thanks enough!


  12. Danica Jandoc 4 years ago

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


  13. Michael Pietroforte 4 years ago

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

  14. Danica Jandoc 4 years ago

    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 4 years ago

    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. Michael Pietroforte 4 years ago

    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 4 years ago

    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 4 years ago

    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 4 years ago

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


  20. Michael Pietroforte 4 years ago

    Rocky, did you boot from a DVD?


  21. bradavon 4 years ago

    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/Outlook.com) password at https://account.live.com/password/reset definitely then also reset it on the Windows 8 login screen?

    Assuming you have Internet access.



  22. Michael Pietroforte 4 years ago

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


  23. bradavon 4 years ago

    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 @hotmail.com Microsoft account.




  24. Michael Pietroforte 4 years ago

    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 4 years ago

    Thanks Michael.


  26. mahender g 4 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?


  27. Michael Pietroforte 4 years ago

    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 3 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!


  29. Michael Pietroforte 3 years ago

    Jim, thanks!


  30. s 3 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


  31. Michael Pietroforte 3 years ago

    s, try this procedure instead.


  32. Evan 3 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!


  33. Michael Pietroforte 3 years ago

    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


  34. Bradavon 3 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?


  35. Wolfgang Pfeiffer 3 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 ... 😉


  36. Michael Pietroforte 3 years ago

    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.


  37. edwin 3 years ago

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


  38. Danish 3 years ago

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


  39. StevenB 3 years ago

    Worked the first time! Thanks...


  40. Frans 3 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...


  41. Michael Pietroforte 3 years ago

    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.


  42. Wolfgang Pfeiffer 3 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 ... 😉


  43. PCFreak 3 years ago

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


  44. Anonymous 3 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! ... :=)


  45. Bruce Roberts 3 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).




  46. Michael Pietroforte 3 years ago

    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.


  47. Frans 3 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!


  48. rave 3 years ago

    where can i get a boot cd or dvd??


  49. Jamsheed Rahman 3 years ago

    Thanks a lot.
    Its working fine........



  50. Lee 3 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.


  51. Naufal 3 years ago

    Thank you! I love your way of writing the guide it made me happy 🙂


  52. gerard58 3 years ago

    Problem with black screen after following all instructions to reset password of local account. I can log into windows 8 again but the screen is black. I can move the cursor around and press ctrl alt and delete to show task manager and shut down the computer, I just cant use windows. can anyone help please ?


  53. mic 3 years ago

    hi, my friend and i were trying this trick for the past week but with no luck.
    Everytime we try to copy the file it just cannot find it. If i try to type "c:" from X:\sources it says "the system cannot find the drive specified". We tried all drives but all results in same error message..

    Help! I am losing hope :'(


  54. Michael Pietroforte 3 years ago

    mic, try other drive letters. I guess your operating system is on d:


  55. glenn 3 years ago

    Michael, you're a very funny person. Tx (not Texas, Thanks)


  56. louie 3 years ago

    ive got the command prompt pulled up but if i try to copy the sethc.exe to c:\ (my os is on c:\) i get a "the file cannot be accessed by the system" message. same with the next command. any suggestions? this is a hybrid laptop. an hp stream pro 11 to be exact. ive tried numerous methods of restoring the passwords but most fail because of the integrated hdd


    • Scott 2 years ago

      Same problem as louie. HPZ420 workstation. Get "the file cannot be accessed by the system" message. Doesn't matter what drive letter you use although my install is on C:


  57. brian 3 years ago

    thanks so much for your help with resetting win 8.1 password the computer I have as a UEFI
    bios and the reset worked perfectly thanks


  58. Michael Pietroforte 3 years ago

    louie, try another drive letter such as d:


  59. Bree 2 years ago

    I messed up real bad :/

    I have two accounts. Both of them is mine but one is an admin. The admin one I rarely use. The one I use the most has my old email and I wanted to change but unfortunately I forgot the password. I don't have much in that account so I decided to make another one and put my current email (the one I'm replying with) in it. I also wanted the new account to be the admin and my foolish mistake was putting it as admin right when I made the account. When I first made it - they didn't ask to set a password. When I tried logging into the new user I had no clue what the password was. I tried many times if it was my email password to old passwords but none worked. Then I tried logging and resetting my password in the Microsoft account. (Account.live.com) and once I successfully change the password I tried logging into the user again and it still didn't work. My confusion is growing increasingly bigger and I still have not yet know what to do. Can you help? Or do I have to go to Best Buy where I bought it to have them restart?


  60. jen 2 years ago

    OMG!!!!!! it worked......i mean it ACTUALLY WORKED......THANK U


  61. David 2 years ago

    I get really close, but when I enter net user and the new password, the answer is "System error 8646"


  62. Ian 1 year ago

    Superb. Worked a treat. Thank you so much !


  63. Edgar 1 year ago

    When I try copy the cmd.exe to sethc.exe I received the message:

    "The file cannot by accessed by de System".

    I suspect the "Windows dedupe"


    • Author

      This sounds as if you booted from the Windows installation where you want to reset the password. You have to boot from a Windows DVD.


  64. Tyler K 1 year ago

    Ok just to note, it is pointless to do this on D:\ if your system is installed to the standard C:\, as pretty much every system will (and should except for special custom Windows installations) be on the C drive.  So I followed your directions, but I did not use D:\ as that is the letter of the installation CD partition.  I just did your copy command of the cmd.exe to the sethc.exe using C:\ and it worked like a charm.  So, great tip, glad you posted because I could not get a driver to get ntpass working for this.  You saved the day!


Leave a reply

Your email address will not be published. Required fields are marked *



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

© 4sysops 2006 - 2017

Log in with your credentials


Forgot your details?

Create Account