I have a desktop PC I bought 10 years ago and I use it as a "server", so it's always on.
It started to suddenly shutdown few months ago, after few days or weeks being on (last time I powered it on, it lasted 46 hours to shutdown).
So, I think I have a hardware issue that is making my PC suddenly shutdown.
After that, I made some tests:
I searched in Windows event viewer and didn't found anything weird.
I stressed it with CPU-Z and watched temperature with SpeedFan, but it reached no more than 65 ºC.
Power outages weren't a problem, because I have an UPS. There are just a few power outages per year, if any. But my PC went down more than 10 times.
I also configured auto power in BIOS and manually tested it (powering on and off my electric installation) and it worked. But now isn't working auto power on. That should be a hint of what is the issue here.
I dont live at the place my computer is located, so I only can rely on logs. Also it's annoying because I have to drive there and power it on every time I need it. But I have physical access to it, so I can try anything you suggest.
I thought some ideas:
Looking for more sophisticated temperature tests (Prime95 or something).
Windows RAM test.
Also scanning for malware (it shouldnt have any, because the system is updated and noone can access it physically, other than me).
What would be other possible causes and what are the tests I could do?
I know I should be using Linux for this, but Windows worked just fine for years.
PC is an MSI with AMD processor and RAID SSDs (two mirrored, bought 2 years ago). It uses Windows 10 x64.