Restoring an HP computer to factory settings requires that you do a system recovery.
There are two types of recovery for HP computers: destructive and non-destructive.
Destructive recovery will reformat your hard drive, destroying all data and reinstalling the operating system and additional software according to the factory configuration.
Non-destructive, or "system," recovery will repair your Windows installation, replacing any damaged or missing system files and restoring the registry to the factory setting.
Non-destructive recovery is the best option if you are unable to back up your user data before running system recovery.Restoring with CDs
Back up all crucial user files if you are able to do so.
If your computer will not burn CDs, use flash drives of 4GB or higher to store your data.
Alternatively, you can use your network to transfer files.
You can then back up your data to CDs at your leisure.
Detach peripheral devices such as removable media drives, USB drives and your printer before recovering.
Also remove any additional hard drives by disconnecting the cable from the back of the computer.
Leave your monitor, mouse and keyboard attached to the computer.
Shut down your computer.
Place the first recovery CD in the CD drive.
If your recovery files are written on a partition, you may be able to select system recovery from the splash screen and your computer starts.
Select the recovery option you would like to use.
To perform a destructive recovery, click the "Advanced" menu option.
Select "Destructive Recovery" and click "Next."
To perform a non-destructive, or system, recovery, click "Next" from the opening screen.
Watch the computer while it is recovering to the factory settings.
Watch for any errors, as the computer will wait indefinitely for a response from you, slowing down recovery time.
Also, you may need to insert additional recovery CDs as the recovery program requests them. Restoring With Recovery Manager
Click the Windows "Start" menu, type "Recovery" in the Search field and press "Enter."
Click "Advanced Options," choose "System Recovery" and select "Next."
If you are prompted to use Microsoft's recovery program, select "No."
Choose the option to back up your files, if you haven't done it already.
Once that is complete, choose "Next" to begin reformatting the drive and returning the system to factory settings. http://h30434.www3.hp.com/t5/Notebook-Operating-Systems-and/How-do-I-RESTORE-my-system-to-the-original-factory-settings/td-p/50113