Ever found yourself staring at your Windows 10 login screen, drawing a complete blank on your administrator password? It happens to the best of us, a real head-scratcher moment that can feel like you’re locked out of your own digital kingdom. But don’t you worry, because getting back into your PC isn’t as scary or impossible as it might seem. We’re going to walk through a clever trick today that lets you reset that forgotten password and regain control, all without wiping your computer clean.
To reset your Windows 10 administrator password, you’ll first need to create a Windows 10 installation media, usually on a USB drive. You’ll then boot your computer from this USB drive to access the Advanced Startup Options. From there, you can open the Command Prompt, where you’ll use a few specific commands to temporarily swap a system accessibility tool, like Sticky Keys, with the Command Prompt itself. This clever maneuver lets you access the Command Prompt right from your login screen, giving you the power to reset any user’s password with a simple command, then you can put everything back to normal.
Tutorial – How to Reset Your Windows 10 Administrator Password
This section will guide you through resetting your Windows 10 administrator password. We’ll be using a method that involves accessing your computer’s recovery environment and making a temporary, but powerful, change to a system file. This technique will allow you to open the Command Prompt directly from the login screen, enabling you to reset any user account password. It’s a bit like having a master key, and once we’re done, we’ll make sure to put the original lock back in place.
Step 1: Create a Windows 10 Installation Media
Get your hands on a USB drive, at least 8GB in size, and create a bootable Windows 10 installation media on it.
This is your crucial first step, your golden ticket, if you will. You’ll need another working computer to download the Windows 10 Media Creation Tool from Microsoft’s official website. This tool will guide you through turning your empty USB drive into a special key that can boot your locked computer into a recovery mode. Think of it as preparing a rescue disk, something that can start your PC even when its main operating system is causing trouble.
Step 2: Boot Your Computer from the USB Drive
Insert your newly created bootable USB drive into the locked computer and restart it, making sure it boots from the USB.
This might require a quick trip into your computer’s BIOS or UEFI settings, which you usually access by pressing a specific key, like F2, F10, F12, or Delete, right when the computer starts up. Your goal here is to tell your computer, “Hey, forget about Windows for a moment, let’s start from this USB drive instead.” It’s like telling a car to start from a jump-starter battery instead of its own flat one.
Step 3: Access the Command Prompt
Once the Windows setup screen appears, don’t install Windows, but rather click “Next” and then choose “Repair your computer” to access the recovery options, finally navigating to the Command Prompt.
When the Windows setup screen pops up, looking like it’s about to install a fresh copy of Windows, resist the urge to click “Install now.” Instead, look for the “Repair your computer” option, usually in the bottom-left corner. This path leads you to a menu of advanced options, where you’ll select “Troubleshoot,” then “Advanced options,” and finally, “Command Prompt.” This is where the real work begins, opening up a powerful text-based interface.
Step 4: Swap sethc.exe with cmd.exe
Use specific commands in the Command Prompt to make a backup of sethc.exe and then replace it with cmd.exe.
First, you’ll want to navigate to the correct drive where Windows is installed, which might not be C: in this recovery environment, so type dir C: or dir D: until you find your Windows folder. Once you’ve located it, type move D:windowssystem32sethc.exe D:windowssystem32sethc.bak to back up the original Sticky Keys file. Then, type copy D:windowssystem32cmd.exe D:windowssystem32sethc.exe to replace Sticky Keys with the Command Prompt. This is the clever trick: sethc.exe is the Sticky Keys program, and by swapping it with cmd.exe, you’re basically telling your computer, “When I press Shift five times, open the Command Prompt instead of Sticky Keys.”
Step 5: Restart Your Computer Normally
Close the Command Prompt and restart your computer, removing the USB drive, allowing it to boot back into Windows normally.
After you’ve performed the swap, simply close the Command Prompt window. Make sure you remove the bootable USB drive before the computer fully restarts. This ensures that your computer boots from its hard drive, back into your regular Windows 10 login screen, rather than booting from the USB again. It’s like putting your tool back in the toolbox and letting your machine run as it usually would, but with a secret backdoor now in place.
Step 6: Open Command Prompt from the Login Screen
At the Windows 10 login screen, press the Shift key five times rapidly to open the Command Prompt.
This is the moment of truth, where our little trick comes into play. Since we replaced sethc.exe with cmd.exe, pressing the Shift key five times will no longer bring up the Sticky Keys accessibility feature. Instead, a Command Prompt window will magically appear right on your login screen, giving you administrator-level access even without knowing the password. It’s a neat little loophole, isn’t it?
Step 7: Reset the Administrator Password
In the Command Prompt, type net user [username] [new_password] and press Enter to reset the password for the desired account.
Now for the main event! If you don’t remember the exact username, you can type net user and press Enter to see a list of all user accounts on your computer. Once you have the username, simply replace [username] with the actual account name, and [new_password] with whatever new password you want to use. For example, net user JohnDoe MyNewPassword123! will reset the password for “JohnDoe.” If you want to remove the password entirely, just leave [new_password] blank, like net user JohnDoe "".
Step 8: Restore sethc.exe
Restart your computer, boot back into the USB drive and the Command Prompt, then copy the original sethc.bak file back to sethc.exe.
You’re not quite done yet! It’s super important to put everything back the way it was for security reasons and to restore your Sticky Keys functionality. So, repeat steps 2 and 3 to return to the Command Prompt from your bootable USB drive. Once there, type copy D:windowssystem32sethc.bak D:windowssystem32sethc.exe to restore the original Sticky Keys file. This removes our little backdoor, making your system secure again and bringing back the original accessibility feature.
After you complete these steps, you will be able to log into your Windows 10 administrator account using the new password you just set. Your files, settings, and applications will all be exactly as you left them, just accessible again. It’s like finding the key you thought you lost, letting you back into your own digital home without any fuss or data loss.
Tips for Resetting Your Windows 10 Administrator Password
- Always have a recovery drive: Seriously, creating a bootable USB drive with Windows installation media is a smart move even if you don’t need it right now. It’s a lifesaver for all sorts of PC problems, not just forgotten passwords.
- Write down your passwords in a secure place: While this method helps, it’s always best practice to keep a physical or digital record of your important passwords in a safe, offline location, like a password manager.
- Understand the risks: This method involves making changes to the system. While we’re putting everything back, messing with system files can be risky if you’re not careful. Always double-check your commands.
- Consider a Microsoft account: If your Windows 10 account is linked to a Microsoft account, you can often reset your password online through Microsoft’s website, which is much simpler if you have internet access on another device.
- Practice patience: Sometimes computers can be finicky. If a step doesn’t work right away, re-read the instructions, double-check your typing in the Command Prompt, and try again. Don’t rush the process.
Frequently Asked Questions About Windows 10 Administrator Password Reset
Will this method erase my data?
Absolutely not! This method is specifically designed to reset your password without touching any of your personal files, programs, or settings. It’s a non-destructive way to regain access to your system, so you don’t have to worry about losing anything important. Think of it as simply changing the lock on your door, not tearing down the house.
What if I don’t have another computer to create the bootable USB?
That’s a bit of a pickle, isn’t it? If you don’t have access to another working computer, creating the bootable USB drive becomes impossible, which is a key part of this method. In such a situation, you might need to ask a friend or family member if you can use their computer for a few minutes, or perhaps visit a local library or an internet cafe that offers computer access.
What if I can’t boot from the USB drive?
If your computer isn’t booting from the USB, it usually means you haven’t correctly set the boot order in your BIOS or UEFI settings. You’ll need to restart your computer, repeatedly tap the key to enter BIOS/UEFI (often F2, F10, F12, or Delete), then find the “Boot Order” or “Boot Priority” section. Make sure your USB drive is listed first in the boot sequence, save your changes, and exit.
Is this method safe for my computer?
Yes, when done correctly, this method is safe. We’re essentially borrowing a system accessibility feature to gain temporary access to the Command Prompt, then we restore the original file. The critical part is making sure you restore the sethc.exe file in the final step. Forgetting to do so could leave a security loophole or cause minor system quirks.
Can I reset a forgotten password for a local account or a Microsoft account with this method?
This method works flawlessly for local user accounts. If your administrator account is a Microsoft account, you can still use this method to reset the local password stored on your computer. However, it won’t change your actual Microsoft account password online. To reset a Microsoft account password, it’s generally easier to use Microsoft’s official account recovery website on another device.
Quick Summary of the Password Reset Process
- Create a Windows 10 bootable USB.
- Boot the locked PC from the USB.
- Access Command Prompt via “Repair your computer”.
- Backup
sethc.exe, then copycmd.exeover it. - Restart normally, removing USB.
- At login, press Shift five times for Command Prompt.
- Use
net userto reset the password. - Restart again, boot from USB, and restore original
sethc.exe.
Wrapping Things Up
Forgetting your administrator password on Windows 10 can feel like hitting a brick wall, leaving you stranded and unable to access your precious files and programs. It’s a moment that can induce real panic, especially when you think about the hassle of potentially having to reinstall Windows and losing everything. But as we’ve seen, there’s a powerful and effective way to overcome this hurdle without resorting to such drastic measures. This guide walked you through a clever, step-by-step process that leverages Windows’ built-in recovery tools to create a temporary backdoor, allowing you to reset that stubborn password and regain access to your system.
The beauty of this method lies in its non-destructive nature. You’re not wiping your hard drive clean, nor are you performing some risky hack that could damage your operating system. Instead, you’re making a calculated, temporary swap of system files, which you then reverse once your task is complete. This means your documents, photos, applications, and all your personalized settings remain untouched, exactly as you left them. It’s like a digital locksmith coming to your aid, opening the door without breaking anything. This skill, knowing how to reset the administrator password on Windows 10, is incredibly valuable.
Of course, prevention is always better than cure. While this trick is a lifesaver, it’s a good reminder to practice good password hygiene. Consider using a reliable password manager to store complex, unique passwords for all your accounts. These tools can generate strong passwords and keep them securely encrypted, so you only need to remember one master password. Also, linking your Windows 10 account to a Microsoft account can offer an easier recovery path through online services, though that won’t help if your internet access is down or you prefer a local account.
Ultimately, regaining control of your computer after forgetting your password doesn’t have to be a nightmare. With a little patience, a bootable USB drive, and the clear steps outlined here, you can confidently navigate the advanced recovery options and reset your administrator password. So, the next time that blank screen gives you a cold stare, you’ll know exactly what to do, transforming a moment of frustration into a simple, solvable problem. Keep this guide handy, and you’ll always have a way back into your digital world.

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.