|First of all, are there any passwords for the BIOS or the hard drive? |
If not, then you should could restore with HP (compaq) disks. However, you should be able to perform a factory restore while in Window 7. That is assuming the unit came with Windows 7 originally. Unit MAY have come with Vista originally.
See the link below.