Okay, so it’s easy to reset a password with admin command prompt, but we don’t have access to admin command prompt, because we don’t have the admin password.
Mission 1: Gain access to admin command prompt
Quick disclaimer: If something goes wrong, it’s your own fault. I accept no responsibility. (Although if you follow these directions, nothing should go wrong.)
1) Force your computer off by holding in the power button. Turn it back on, and when it says, “To interrupt normal start up press (a key)” Press that key.
2) Then it will say “Press (a key) to recover your system” Press that key.
3) Select your language and keyboard layout.
4) select “troubleshoot”, then “advanced options”, then “command prompt”.
5) Type in “notepad” and press enter
6) Now, within notepad, go to “File” then “open.”
7) Set “Files of type” to “All files”
8) Now navigate to System32 (C:/Windows/System32) NOTE: The drive letters may be switched around, so make sure you’re opening the local disk.
Okay, so when you start “Sticky Keys” in Windows, it runs the file “sethc.exe.” So, lets just rename “sethc” to “sethc1” and then make a copy of cmd.exe (or cmd if file extensions are hidden) and rename the copy of cmd to “sethc”. Note: after you rename a file, you will have to close and reopen the “Open” prompt for the changes to take effect.
After all that renaming, lets shutdown the computer, and turn it on as normal. When it boots, press “Shift” five time to start “Sticky Keys” (or in our case start admin command prompt.)
Mission 2: Change the Admin password
Now we can change the Admin password to whatever we want.
Type “net user” into command prompt, and press enter.
Find the admin username, then type in “net user adminusername *”
Replace adminusername with your admin user name though. And make sure there is a space between the username, and the *. Also, if the username has any spaces or punctuation, just be safe and add quotes to the user name.
Example: net user “The Code Post” *
Now type in a new password. Nothing will show when you type it. That’s fine.
And you have now reset the password. Feel free to change the “sethc” and “cmd” filenames back to their defaults.