Sounds like a PSU problem. When my power supply was overheating, my pc would just power off. If you're not sure if this is the issue, bump the back of your pc lightly, and then harder. Don't SLAM it, but thump it. If the PSU is having issues, or overheating, the pc should shut down. Then you've isolated your issue. :P thanks! Hope this helps!