The key is in the BIOS and as long as you installed W10 using the media creation tool at the link below or used the HP cloud recovery tool, W10 should have automatically activated when you installed it.
You can reinstall W10 as many times as you want as long as the product key is in the BIOS.
Here is an info link for how to use the cloud recovery tool.
If you have a digital license for Windows 10 Pro, and Windows 10 Home is currently activated on your device, you'll see one of two messages when you select Go to Microsoft Store:
If you seeInstall, select the button to install Windows 10 Pro.
If you seeBuy, you may need to purchase a Windows 10 Pro license. Or, try to sign in to Microsoft Store with the Microsoft account that was used to purchase the Pro license. Then, follow the instructions to install Windows 10.
If you have a digital license for Windows 10 Pro, but Windows 10 Home isn't activated on your device, select Troubleshoot and then follow the instructions to upgrade to Windows 10 Pro.
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".