there are many ways to help you reset hp or other windows password if you forgot hp password.
Method 1. reset your windows pasword via safe mode.
Step 1: Boot or Reboot your Windows 7 laptop (take Windows 7 as example now).
Step 2: Hold on F8 to enter Advanced Boot Options before the Windows 7 loading screen appears.
Or Press CTRL to enter Advanced Boot Options when computer power on.
Step 3: Choose Safe Mode with Command Prompt in the coming screen.
Method 2. reset your Hp laptop password with command prompt
This is a method that can reset Windows 10 forgotten password with Windows installation CD and command prompt on login screen. By running Command Prompt instead of Utility Manager on locked login screen with help of installation CD, you could easily reset Windows 10 forgotten password or add new administrator with command line.
Step 1: Set command prompt run on locked Windows 10 login screen.
1. Set locked Windows 10 computer boot from Windows 10 DVD.
Before you boot Windows 10 from installation DVD, please confirm that UEFI and Secure Boot are disabled.
2. Open Command Prompt with Shift + F10 keys.
3. Run commands to replace the full utilman.exe with cmd.exe. And before replacement, make a copy of utilman.exe would let you restore it later.
replace utilman exe with cmd exe
4. Remove Windows 10 installation DVD and restart Windows 10.
Method 3. reset your HP password with password reset tools
There are many free windows password reset tools out there like ntpasssord UUKeyes, ophcrack and iseepassword,
https://www.uukeys.com/reset-hp-laptop-password.html
https://pogostick.net/~pnh/ntpasswd/
https://www.iseepassword.com/how-to-reset-windows-7-password.html
what you need to prepare is an USB or DVD.