pc keeps restarting

Solution
My canned random reboot Rant
Random reboots are usually caused by the PSU, the RAM or software AND in that order of likely-hood.
PSU - If you can borrow/swap a PSU for testing. sibling/friend you can swap out the PSU and each system will be testing the other.
RAM - run the system with one stick of RAM see if stability returns if not Test all the RAM with memtest 86 for three passes or overnight. if you get no 0 errors after more than three passes the ram is good. with the random reboots I would suggest running this test after the PSU swap or after the PSU has been cleared.
Software - Drivers or other issues can cause reboots. Boot to a linux distro on a USB drive. mint linux will boot to memtest86. you can run the OS from the USB and...
My canned random reboot Rant
Random reboots are usually caused by the PSU, the RAM or software AND in that order of likely-hood.
PSU - If you can borrow/swap a PSU for testing. sibling/friend you can swap out the PSU and each system will be testing the other.
RAM - run the system with one stick of RAM see if stability returns if not Test all the RAM with memtest 86 for three passes or overnight. if you get no 0 errors after more than three passes the ram is good. with the random reboots I would suggest running this test after the PSU swap or after the PSU has been cleared.
Software - Drivers or other issues can cause reboots. Boot to a linux distro on a USB drive. mint linux will boot to memtest86. you can run the OS from the USB and await reboot.
end canned rant

Canned Grounding Rant-
shut down system and remove side panel. with the power cable plugged into the PSU touch a bare unpainted metal area of the case. (my favorite spot is an unpainted screw securing the PSU) once you have grounded yourself you can unplug the computers power cable from the PSU and can touch the system.
if you move your feet, or shuffle in your chair, plug in the cord, reground yourself and unplug again.
end canned rant-

if you remove the RAM or do any work inside the PC ground yourself.
 
Solution