i just restored my hp to factory conditions yesterday and its doing great. what u need to do is-
1. go to 'start' and find- recovery manager (all new hp computers have that)
2. press 'advanced' (u'll find this below on the recovery manager window)
3. u'll find some options after that. select 'restore computer to factory settings'
and there u go! all the best! :)