Google BAD CAPS to learn what to look for but in the future tell make, model of PSU and machine parts so folk can guess better. All I have is the symptom and BAD CAPS is my match for this one. It could also be something like an old CMOS battery but no PC details mean I'm going with BAD CAPS first.
I have a pc with windows 7 that works fine.
But occasionally the pc willl freeze at startup when the logo should be seen but its not showing up, so i need to restart the computer and then it works.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic