Here are the instructions from the user manual (be warned that doing this you will lose all your photos, Word docs, etc.):
1 Turn off the PC. If necessary, press and hold the On button until the PC
turns off.
2 Disconnect all peripheral devices from the PC except the monitor, the
keyboard, and the mouse.
3 Press the On button to turn the PC on.
4 During the startup, do the following to enter the System Recovery program:
When the blue screen with the HP Invent logo appears, press the F10 key on
the keyboard. (You have only a few seconds to press the F10 key before the
normal startup process continues.)
5 The PC starts the recovery; wait for the onscreen instructions to display, and
then follow those instructions.
6 Complete the PC startup, and finish the registration process. Then reconnect
all peripheral devices.
Check out the link on HP's site for more info:
http://h10032.www1.hp.com/ctg/Manual/bph08796.pdf