Hi,
Please do try these troubleshooting steps that may help.
- Start by doing a hard reboot, remove the battery and unplug the AC adapter then press and hold the power button for 20 seconds then try booting it up again.
- If the laptop will still shutdown by itself, remove the battery off the laptop then power the laptop with just the AC adapter connected and observe if it will still shutdown again.
- If the laptop will not turn off with just the AC adapter connected the problem lies in the battery but if it will still shut down I would suggest trying a different AC adapter first.
- And if using a different AC adapter will still not solve the problem, proceed with reseating the RAM's, remove all the RAM's off for couple of seconds then...