Turning off unexpectedly by itself

I finally got the computer to boot up and it will run for a little while and then it will turn itself off when I'm in the middle of playing a music playlist or going through my photos and videos. I haven't been able to get it to run longer than 30 minutes then it Powers down and I have to restart the computer. How can I fix this

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2942205:01crwdne2942205:0:

@richarddragoo you say "it Powers down" does that mean it goes through a regular shutdown procedure or it just turns off? If it just turns off, can you immediately turn it back on? This sounds like a power supply issue.

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0