@Danik0962
Hello;
Allow me to welcome you to the HP forums!
You didn't mention which OS it came preformatted with -- and that is important because the product key that came with your PC only works on the original OS version.
Ordinarily, I would recommend using HP Recovery Media to restore your PC to its original condition. That would erase the entire drive, format the drive, and install the OS, the drivers, and the HP utilities.
Unfortunately, there is no HP Recovery Media linked to the HP Product Page for your PC. This could be an oversight by HP, or it could also mean that HP no longer stocks the recovery media for your PC.
You can try contacting HP Customer Support directly, using the links below, to see if you can order if from them:
If you live in the US or Canada, contact information is on this page: http://www8.hp.com/us/en/contact-hp/phone-assist.html#section1
If you live elsewhere, contact information is on this page: http://www8.hp.com/us/en/contact-hp/ww-contact-us.html
NOTE: After you get through, stay on the line until you are finally able to talk to some one -- it can take a while!
If you have trouble finding a phone number, then try: 1 (800) 474-6836
---------------------------------------
However, HP Customer Support is generally not available on the weekends, so you might have to wait until Monday to contact them.
---------------------------------------
If HP no longer provides Recovery Media for your model, a couple of other sites you should check are: http://www.computersurgeons.com/ and http://www.restoredisks.com/
Before using the media, read through this: http://support.hp.com/us-en/document/c00006110
Good Luck
I am a volunteer and I do not work for, nor represent, HP