I Only Stepped Away for Five Minutes, and Windows Restarted Itself

I stepped away from my computer for just five minutes, but when I came back, Windows had restarted itself without warning. I’m not sure whether an automatic update, power issue, or system crash caused it.

1 Like

Try:

powercfg /sleepstudy

Which will generate a little report you can open in your browser:

file:///C:/WINDOWS/system32/sleepstudy-report.html

Default is 3 days, but you can specify /duration <days>.

Additionally, you may find power related events in Event Viewer.

Try filtering on [41, 42, 1074, 6008, 6009]

  • 41, Kernel-Power: Windows detected that the computer did not shut down cleanly. This can follow power loss, a reset, a crash, or a forced power-off.
  • 1074: A process or user initiated a planned shutdown or restart. The event usually names the responsible process and reason.
  • 42, Kernel-Power: Windows entered sleep or another low-power state.
  • 6008: Windows reports an unexpected shutdown after the next startup.
  • 6009: Windows records system startup information, useful for confirming reboot timing.
2 Likes

Check Event viewer for a planned restart. It should show what triggered it, usually Windows update. If you see an unexpected shutdown instead, it was likely a crash or power issue, possibly due to a failing PSU or overheating. If Windows Update caused it, set active hours to prevent restarts while you’re working.

You can check in the Eventlog, if there’s some Error Log Entry that says something like “The computer has been restarted without being shut down properly” or “BugCheck” then it has crashed. Or you might see an Event 1074 where it tells you if the restart was scheduled for installing updates.

You can also check in %Windir%\Minidump if any Dump files were created, if the computer got a Bluescreen.