The fastest way back in depends on what you remember
If you've forgotten your password, the route back into your HP laptop depends on whether you use a Microsoft account or a local account, and whether you can answer your security questions or access your recovery email. Microsoft accounts are easier to recover because Microsoft can verify your identity across the web. Local accounts require you to reset the password directly on the machine, which is slower but possible if you have a recovery disk or another admin account on the same laptop.
The methods below work on Windows 10 and Windows 11. If you're locked out of a Chromebook or an older Windows version, the process differs — but most HP consumer laptops run Windows, so start here.
Key Takeaways
- A Microsoft account lock can often be reset through the "I forgot my password" link on the Windows sign-in screen, which sends a code to your recovery email or phone.
- A local account password requires either a password reset disk made before you were locked out, or access to another admin account on the same laptop.
- If you have neither, you can create a new local admin account using Windows installation media or a bootable USB drive, then use it to reset the forgotten password.
- HP's built-in recovery tools do not unlock a forgotten password — they erase the drive, so use them only as a last resort.
- If the laptop is encrypted with BitLocker, you will need your recovery key before any reset method will work.
Resetting a Microsoft account password from the sign-in screen
On the Windows sign-in screen, look for the text "I forgot my password" below the password field. Click it. Windows will ask you to verify your identity — usually by sending a code to the email address or phone number linked to your Microsoft account.
Check the email inbox (including spam folders) or text messages for that code. Enter it on the screen, then create a new password. You'll be able to sign in when ready with the new password.
This method works only if you remember the email address or phone number associated with your account, and if you still have access to that email or phone. If you don't, you'll need to use a different method.
Using a password reset disk for a local account
If you created a password reset disk before you were locked out, plug it into your HP laptop now. On the sign-in screen, enter any password (it doesn't matter if it's wrong), then click "Reset password" when it appears.
Windows will prompt you to insert the reset disk. Follow the on-screen steps to create a new password. Once you've set it, you can sign in normally.
If you don't have a reset disk and didn't create one before being locked out, move to the next method.
Creating a new admin account using Windows installation media
This method works if you have access to another computer and a USB drive (8 GB or larger). You'll create bootable Windows installation media, use it to start your HP laptop, and create a new local admin account that lets you reset the forgotten password.
On another computer, go to microsoft.com/software-read/windows and read the Windows Media Creation Tool. Run it, select "Create installation media for another PC," and follow the prompts to write Windows to your USB drive. This takes 10 to 20 minutes.
Plug the USB drive into your locked HP laptop. Restart the laptop and press F2, F10, Esc, or Del repeatedly as it boots (the key varies by HP model — you'll see a prompt on the screen). This opens the boot menu. Select the USB drive and press Enter.
Windows Setup will start. When you reach the screen asking where to install Windows, press Shift + F10 to open a command prompt. Type the following commands in order, pressing Enter after each:
- net user NewAdminName Password /add (replace NewAdminName and Password with your choice)
- net localgroup administrators NewAdminName /add
Close the command prompt and restart the laptop. Remove the USB drive. At the sign-in screen, sign in with the new admin account you just created. Once you're in, open Settings, go to Accounts, and reset the password on your original account.
What to do if BitLocker encryption is enabled
If your HP laptop has BitLocker turned on (common on business or Pro versions of Windows), you cannot reset your password without the BitLocker recovery key. This key is usually stored in your Microsoft account online, printed and kept somewhere safe, or saved to a USB drive.
If you have the recovery key, you can enter it at the BitLocker recovery screen when you boot the laptop. If you don't have it, contact HP support or your IT department — they may be able to help you retrieve it if you can prove ownership of the device.
When to use HP's recovery or reset options
HP laptops include built-in recovery tools accessible from the boot menu (usually by pressing F11 or Esc during startup). These tools can reset Windows to factory settings, but they erase all your files and programs. Do not use them to unlock a forgotten password — use them only if your Windows installation is corrupted and won't start.
If you've tried the methods above and none of them work, a factory reset is your last option. Before you do it, make sure you have copies of any files you need, because they will be deleted.
Preventing lockouts in the future
Once you're back in, take these steps so you don't get locked out again. If you use a Microsoft account, make sure your recovery email and phone number are current — you can check them at account.microsoft.com. If you use a local account, create a password reset disk now: go to Settings, search for "password reset disk," and follow the wizard. Store the disk somewhere safe.
Consider using Windows Hello (facial recognition or fingerprint) instead of a password. It's faster and you can't forget it. You can set it up in Settings under Accounts > Sign-in options.
Frequently Asked Questions
Can I unlock my HP laptop without a password?
Not without creating a new admin account or using a password reset disk. Windows requires authentication to sign in. If you have physical access to the laptop and another computer, you can create a new admin account using the Windows installation media method described above.
What if I don't remember my Microsoft account email address?
Go to account.microsoft.com/security from another device and look for account recovery options. If you can't recover your Microsoft account, use the Windows installation media method to create a new local admin account instead.
Will resetting my password erase my files?
No. Resetting a password keeps all your files and programs intact. A factory reset (using HP's recovery tools) erases everything. Only use factory reset if Windows won't start at all.
How long does the Windows installation media method take?
Creating the bootable USB drive takes 10 to 20 minutes on the other computer. Creating the new admin account on your HP laptop takes another 5 to 10 minutes. Resetting your original password takes a few minutes after that.
What if my HP laptop is encrypted and I don't have the recovery key?
Contact HP support with proof of ownership. They may be able to help you retrieve the BitLocker recovery key from Microsoft's servers if your laptop is linked to your Microsoft account. If not, a factory reset is your only option.