My Windows PC keeps restarting on its own, including while sitting at the Windows login screen before anyone has signed in. After some restarts, Windows says the sign-in option is temporarily disabled because of too many incorrect attempts or repeated shutdowns, even though no incorrect password was entered. I also saw a recovery message saying the device encountered a problem and could not be repaired, with a reference to C:WindowsSystem32LogfilesSrtSrtTrail.txt. Startup Repair, System Restore, Startup Settings, and Safe Mode have not solved the problem, since the computer restarts again afterward. The keyboard lights briefly turn off and back on during each restart. Could this be caused by failing hardware, overheating, drivers, damaged Windows files, storage problems, or malware? What diagnostics should I run to identify the cause?
5 Answers
The behavior could be caused by damaged Windows files or a failing SSD. Back up important personal files as soon as possible, then check the drive's health and consider reinstalling Windows if the hardware passes testing. A reinstall will not fix an SSD that is beginning to fail, so test the drive first if possible.
Open SrtTrail.txt from the recovery environment and read the repair details. It may identify a specific driver, boot file, or disk-related problem, although the log is not always conclusive. Also run the available disk and system-file checks from recovery rather than relying only on Startup Repair.
Check Event Viewer for errors immediately before each restart. Look under Windows Logs for System events, especially unexpected shutdowns, hardware errors, driver failures, or storage warnings. The exact event details may help distinguish a software crash from a power or hardware problem.
The keyboard lights switching off and on suggests the whole machine is restarting rather than merely logging Windows out. That makes a power, motherboard, memory, overheating, or other hardware fault worth investigating. Run memory and hardware diagnostics, disconnect unnecessary peripherals, and test with stable power before focusing only on malware.
Since Safe Mode also restarts, a normal startup program is less likely to be the cause. Hardware, overheating, power delivery, storage failure, or low-level drivers become more likely. Check CPU temperatures and cooling, make sure the fans are working, and inspect that the CPU cooler is mounted correctly.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures