to an empty 8 GB USB memory-stick, or burn to a blank DVD disk, and boot from this media, you can reinstall Windows 10. onto the replacement disk-drive. If asked for a product-key, click "I do not have one". Windows will "call-home" to Microsoft, and will automatically use the previous product-key.
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".