I usually just perform a clean install with the latest version of the OS.
Here is a small guide:
Download media creation tool from Microsoft on PC (different PC), run and create a bootable pendrive with the OS on it. (there is an explanation on the Microsoft web page on how to create the pendrive). Create the drive with Windows 10 Home 64-bit edition. Windows will automatically activate once installed and connected to the Internet.
If you choose this option you will need to use the pendrive to perform a clean install of Windows 10. You might need to disable fastboot and secure boot in BIOS (probably not). So, insert the pendrive in the PC. Turn off the PC by holding the power button. Press the power button and immediately keep pressing ESC until the startup menu appears and then press F9 and choose the pendrive in the boot menu. Once it boots from pendrive follow the procedure to install Windows.
Choose custom install and delete all partitions, install in unallocated space.
When finished installing allow Windows to completely update and find all or most drivers. You can follow this process by going into settings > Security and update > click on Verify for updates. You might need to reboot a couple of times.
I recommend installing HP support assistant which will help keep your drivers up to date and much more. You can download the latest version from here.
Once completely updated you can go into device manager and see if there are any missing drivers (there will be yellow exclamation mark next to the device). You can find these drivers and software on HP support page for your product.
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".