Microsoft forced many users to switch to using a Microsoft login rather than a local one, so it’s easier to lose track of the latest password as you probably change it more often. Either way, all is not lost. There are a few things you can try before going nuclear and reinstalling Windows and wiping everything in the process. Before we dive in, we just want to make it clear that the purpose of this guide is to help you gain access to a personal PC that you’ve been locked out of. We can’t, of course, condone the use of these tips to gain access to someone else’s computer. TIP: Before you do anything else, just double-check that you haven’t accidentally pressed the Caps Lock key. You may be typing the right password, but upper-case and lower-case letters will be swapped over. Since passwords are case-sensitive, it won’t be recognised. Similarly, on a laptop, ensure you don’t have Num Lock enabled, which could mean you’re typing numbers instead of letters. One other thing: Microsoft now allows you to ditch your password entirely and use its authenticator app (as well as other methods) so that you don’t have to remember anything. Of course, that doesn’t help you right now, but it’s something you should consider setting up when you do manage to get back into Windows.
How to reset your Windows 10 password
1. Microsoft account
If you use a Microsoft account to log into Windows 10, you’re in luck. A forgotten password is easily resolved by going to the Recover your account page and following the instructions to reset your password. Once that’s done, you can use the new password that you just entered to log into Windows.
2. Local account
There may still be hope even if you’re using a local account on your laptop or PC.
Your computer needs to be running Windows 10 version 1803 or later. That’s fairly old, so there’s a good chance it will have a newer version.
However, you’ll have needed to set up security questions to be asked in the event you forgot your password.
So, if you did add security questions, you should see a Reset password link on the Windows 10 sign-in screen. To find this, enter a password – anything will do – and after the ‘incorrect password’ message, you should see a Reset password link, along with a hint if you typed one in when you originally chose the password.
If you use a PIN instead of a password, and forgot only the PIN, click on the key icon and sign in with a password (if you can remember it) instead.
If you also forgot your password, you’ll need to reset that first.
To actually reset the password, click on Reset password. You should now see the security questions you set up when you set up your local Windows 10 account.
Answer them correctly, and you’ll be able to enter a new password.
If you don’t see any security questions, you are out of luck. You either didn’t set them up or your computer is running an earlier version of Windows 10. It’s not possible to reset a forgotten password and the only option then open to you is to completely reset Windows. This will erase your documents, photos, music, programs, apps and settings. Windows 10 will go back to how it was when you first bought the laptop or PC.
This is probably very bad news if you don’t have a backup of important files, so it’s worth trying every password (and variations of it) that you’ve ever used before you take this nuclear approach.
If you do find yourself in that unenviable position, here’s how to reset Windows 10.
Don’t choose Keep my files, because this type of reset won’t get rid of the password which you can’t remember, so you still won’t be able to log in.
If you do manage to reset your password with the security questions, you can then choose a new PIN code by going to Start > Settings > Accounts > Sign-in options > Windows Hello PIN > Change after logging in.
For those using older versions of Windows, the following tips may help.
3. Use the hidden administrator account (Windows 7 and older)
Windows 7 (and some previous versions) have an administrator account which isn’t visible in normal use. Note: this method may not work if the account has been disabled, which it is by default in some Windows 7 installations. Once that’s done, here’s how to get Windows to automatically sign in and not ask for a password.
4. Use the Windows boot disc or USB drive
If you can find a Windows DVD or bootable USB drive with Windows on it, you might be able to use the command prompt to enable a disabled administrator account. Alternatively, you can also try to force Windows to launch startup recovery by turning on your computer and when you see the Windows loading screen, hold down the power button for four seconds to turn it off. Next time you start it up, Windows should offer a boot menu with an option: Launch Startup Repair. Choose this and let Windows search for problems. Once it finishes, look for a drop-down menu called View problem details. Scroll down and click the last link. This opens a text file. We’re not interested in this, as we’re using it to access File Explorer. At the top of the window, click File > Open. Navigate to your Windows drive (the drive letters may have been changed) and then find the WindowsSystem32 folder. Scroll down and find the file sethc. You might need to change the ‘Files of type’ to all files rather than just text files. Right-click on sethc and choose Rename. Change the name by adding a number or letter. It doesn’t matter which. Click off the filename to save your changes. Now scroll down to cmd (the command prompt) and right-click on it. Choose Copy, then right-click on some white space and choose Paste. This will create a copy, but rename it sethc just as you did with the actual sethc file before. Close all the windows, then click on Finish. Your computer will turn off. Boot it up again, and wait for the login prompt to appear. Press the Shift key five times. This will launch the command prompt. Type: net user This will list all the user accounts. Let’s say your user account is called Jim Now type: net user Jim * Now you can enter a new password for that account. If you don’t want one, just press Enter to create a blank password. You’ll be asked to type the password again to verify it. Close the Command Prompt window and you can now log into the user account with the new password.
Use a password reset utility
If all of this fails you can download a utility which claims to break or bypass the Windows password. Again, we can’t condone the use of these for anything other than rescuing your own files in your own computer. You’ll find these easily if you search online for ‘Windows password reset tool’, and one worth trying is simply called NTpasswd.
Related stories
How to set a temporary passwordHow to change another user’s passwordHow to remove the Windows password altogether.
Jim has been testing and reviewing products for over 20 years. His main beats include VPN services and antivirus. He also covers smart home tech, mesh Wi-Fi and electric bikes.