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 didn't find the right solution from the Internet.