my compaq desktop computer will boot and will shutdown unexpectedly?

Question by jerry l: my compaq desktop computer will boot and will shutdown unexpectedly?
i have tried to reset the cmos and ram but it stills shutdown. the shutdown does not have a time interval
it does not restart. and it started after we had an ice storm that caused a power surge in my house. the fans are working.

Best answer:

Answer by Itachis.eyes
might be spyware or a hack, exp. if its booting up by itself

but if its just shutting down by itself it might just be it over heating in witch case you need to clean or replace the cooling fan

What do you think? Answer below!