- Author and member of the year 2019 – Why DevOps still doesn't rule the IT world - Wed, Jan 1 2020
- Results of the 4sysops member and author competition in 2018 - Tue, Jan 8 2019
- Why Microsoft is using Windows customers as guinea pigs - Reply to Tim Warner - Tue, Dec 18 2018
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 ^
- 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.)
- 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.)
- 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.)
- 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.
- 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.
- Wait until you see the Windows 8 Lock Screen.
- 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.
- 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.)
- 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”).
- 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.