The fastest route: use your Microsoft account to reset your password

If your HP laptop runs Windows 10 or Windows 11 and you signed in with a Microsoft account (not a local account), you can reset your password from the login screen without any recovery disk. On the login screen, select "I forgot my password" beneath the password field. Windows will walk you through verifying your identity using a phone number or backup email address tied to that Microsoft account.

This process takes about 10 minutes and works whether or not you have a recovery disk. Microsoft will send a code to your phone or email, you enter it on the login screen, and then you create a new password. You'll be logged in within a few minutes after that.

If you don't remember which email or phone number you used when you set up the account, look for any recovery information you may have saved elsewhere — old account setup emails, password manager records, or notes you made at the time. If you have none of those, move to the next section.

Key Takeaways

  • If you signed in with a Microsoft account, use "I forgot my password" on the login screen to reset through email or phone verification.
  • If you signed in with a local account and have no recovery disk, you will need to create a Windows installation media on another computer to reset your password.
  • Windows installation media (a USB drive or DVD with Windows files) can be created free from Microsoft's website on any other computer.
  • Resetting a local account password requires booting from that media and using the Command Prompt, which takes 20 to 40 minutes and carries a small risk of data loss if done incorrectly.
  • If you cannot complete either method, a local HP service center or Windows repair shop can reset your password, usually for $50 to $150.

Checking whether you have a local account or Microsoft account

Before you try anything else, you need to know which type of account you're locked out of. On the login screen, look at the account name shown. If it's an email address (like yourname@outlook.com or yourname@gmail.com), it's a Microsoft account and the first section above is your path forward.

If the account name is just a username with no @ symbol (like "Sarah" or "JohnDoe"), it's a local account. Local accounts don't connect to Microsoft's servers, which means you can't reset them through email or phone. You'll need to create installation media instead.

Creating Windows installation media on another computer

To reset a local account password, you need a USB drive (8 GB or larger) or a blank DVD and access to another computer with internet. Go to Microsoft's Windows read page (microsoft.com/software-read/windows) on that other computer. Select your Windows version (10 or 11) and choose "Create installation media for another PC."

read the Media Creation Tool, run it, and follow the prompts. Select "USB flash drive" or "ISO file" (if you're burning to DVD). The tool will read Windows files to your USB drive or create an ISO file you can burn to a DVD using free software like ImgBurn or Windows Disc Image Burner. This takes 15 to 30 minutes depending on your internet speed.

Once the media is ready, label it clearly so you don't confuse it with other drives or disks. You'll use this to boot your HP laptop and access the password reset tools.

Booting from the installation media and accessing Command Prompt

Shut down your HP laptop completely. Insert the USB drive or DVD you created. Turn the laptop back on and watch for a message that says "Press any key to boot from USB" or "Press any key to boot from CD/DVD." Press a key when ready — you have only a few seconds. If you miss it, shut down and try again.

The Windows Setup screen will appear. Do not click "Install now." Instead, press Ctrl + Shift + F3 to open Command Prompt. (On some HP models, you may need to press Shift + F10 instead. If neither works, look for a "Repair your computer" link on the setup screen and select "Troubleshoot," then "Advanced options," then "Command Prompt.")

Once Command Prompt is open, you're in the Windows recovery environment. This is where you'll reset your password. The command you need is: net user [accountname] [newpassword]. Replace [accountname] with the username you're locked out of (the one shown on the login screen) and [newpassword] with a password you want to use. For example: net user Sarah MyNewPassword123. Press Enter.

If the command succeeds, you'll see a message saying "The command completed successfully." Remove the USB drive or DVD, type exit to close Command Prompt, and the laptop will restart. You should now be able to log in with your new password.

What to do if the command doesn't work

If you get an error message like "The system cannot find the file specified," you may be in the wrong directory or the account name may be spelled differently than it appears on the login screen. Type net user (with no other words) and press Enter. This will list all user accounts on the computer. Find your account name in that list and use the exact spelling in your reset command.

If you still get errors after that, the installation media may not match your Windows version (for example, using Windows 10 media on a Windows 11 laptop). Go back to the Microsoft read page and create media for the correct version. You can usually tell which version you have by looking at the login screen — Windows 11 has a centered layout with a large Windows logo, while Windows 10 has the logo in the lower left.

If you've tried both versions and neither works, or if you're uncomfortable using Command Prompt, contact a local computer repair shop or HP's support line. They can reset your password for you, usually within a day or two, for a service fee.

Protecting yourself from this situation in the future

Once you're back in your laptop, create a password hint that you'll actually remember, or write your password in a find location (a locked drawer, a password manager like Bitwarden or 1Password, or a sealed envelope). If you use a Microsoft account, make sure the recovery email and phone number are current — check them every few months to confirm Microsoft can still reach you.

Consider turning on Windows Hello (facial recognition or fingerprint login) as a backup way to unlock your laptop. You can set this up in Settings > Accounts > Sign-in options. If you forget your password but your face or fingerprint still works, you can change your password without needing installation media.

If you have important files on this laptop, also consider creating a backup to an external drive or cloud storage. This won't help you unlock the laptop, but it means you won't lose data if something goes wrong during the reset process.

When to take your laptop to a repair shop instead

If you don't have access to another computer to create installation media, or if you're not comfortable using Command Prompt, a local repair shop is the simpler choice. Most shops can reset your password in 1 to 2 hours. Costs vary by location and shop, but typically range from $50 to $150. Some shops may charge extra if they need to order parts or if your laptop has additional security features.

HP's own support centers can also help, though they may require proof of ownership (your receipt or proof of purchase). Call your local HP service center or visit hp.com/support to find one near you. Response times and pricing vary by location.

Frequently Asked Questions

Will resetting my password delete my files?

No. Resetting your password through Command Prompt only changes the password itself. Your files, programs, and settings remain untouched. However, if something goes wrong during the process — for example, if you accidentally type the wrong command — you could potentially damage Windows. Follow the steps carefully and don't experiment with other commands.

What if I don't know my account name exactly?

Type net user in Command Prompt (when you're in the recovery environment) to see a list of all accounts on the computer. Use the exact spelling from that list in your reset command. Account names are case-insensitive, so "Sarah" and "sarah" are the same.

Can I use a recovery disk from a different HP laptop?

No. Recovery disks are specific to the model and Windows version they were created for. You need to create new installation media using the steps in this article, or use a disk that was created for your exact HP model and Windows version.

What if my HP laptop has a BIOS password too?

A BIOS password (which locks the computer before Windows even starts) is separate from your Windows password. If you have both, resetting your Windows password won't help you boot the laptop. You'll need to contact HP support or a repair shop, as BIOS passwords require different tools to reset.

Is there a way to do this without a USB drive or DVD?

Not without another computer. You need some way to boot from Windows installation media, and that requires either a USB drive, DVD, or another computer on your network. If you have neither, a repair shop is your best option.