New
#11
The battery will help absorb power fluctuations however it must be installed at the time you're using irregular power which I would avoid.
If your PC will not recover from freezing, or respond to Cntrl Alt Del to end processes in the Task Manager, then it may be better to hold the power button to shut it down rather than removing the battery.
Does the PC still have the HP factory install? If so that is the worst possible install of Win7 one can have, larded with the industry's worst load of bloatware and duplicate utilities which interfere with better versions built into Win7. Most tech enthusiasts won't even run such an install but instead Clean Reinstall Windows 7 .
Everything needed is in the blue link to get and keep a perfect install just like a million others have done without a single complaint.
Until then you can Clean Up Factory Bloatware and if that isn't sufficient work through the Troubleshooting Steps for Windows 7
Reading and understanding these tutorials will also familarize you with the tools and methods that work best for Win7 based on tens of thousands of installs we've helped with here.