More free tools →

Why did it reboot?

Every restart in the last 60 days, with its cause. Windows Update, a person, a script, a management tool, a blue screen with its code, or a power loss. Built for the "my PC restarted overnight" ticket.

Runs entirely in your browser. Nothing is uploaded, stored, or sent to us.

1Export the restart events

Paste this into PowerShell on the machine. It reads the System log and writes reboots.xml to your Desktop.

$e = Get-WinEvent -FilterHashtable @{LogName='System'; Id=12,13,19,20,27,41,109,1001,1074,6005,6006,6008; StartTime=(Get-Date).AddDays(-60)} -ErrorAction SilentlyContinue; '<Events>' + (($e | ForEach-Object { $_.ToXml() }) -join '') + '</Events>' | Out-File (Join-Path ([Environment]::GetFolderPath('Desktop')) 'reboots.xml') -Encoding utf8

Run it as an administrator for the full picture. From another machine, add -ComputerName PC01 after Get-WinEvent. Or in Event Viewer: System log, Save All Events As, XML.

2Drop the file here

Restart history from the whole fleet

RFF records uptime, crashes and restarts on every endpoint. "It restarted last night" becomes a search in one console.

Start free for 100 endpoints

How Windows records a restart

A restart that something asked for is event 1074 from User32. It names the program that asked, the account it ran as, a reason code and an optional comment. Windows Update, shutdown.exe, Restart-Computer, Intune and ConfigMgr all leave one. An unexpected restart leaves nothing at the time it happens, because the machine is already gone. After the next boot Windows writes event 41 (Kernel-Power), 6008 with the last time it knew it was running, and, for a blue screen, the bugcheck code in event 41 and a few minutes later in event 1001.

What we checked it against

FAQ

How do I find out why Windows restarted?

Windows records it in the System event log. A requested restart is event 1074, which names the program and the account that asked. An unexpected one leaves event 41 (Kernel-Power) and 6008 after the next boot, and a blue screen puts its bugcheck code in event 41 and later in event 1001. This page reads all of them and puts them in order.

What does Kernel-Power event 41 mean?

Windows started without having shut down cleanly. If the BugcheckCode in the event is not 0, it crashed with that blue screen code. If it is 0, the power was cut, the machine was reset, or it froze and someone held the power button.

Why does event 1074 say wmiprvse.exe or svchost.exe?

Those are the processes that carried out the request. wmiprvse.exe is WMI. Restart-Computer and most remote management tools restart through it. svchost.exe with no reason code on a Hyper-V virtual machine is the host shutting it down through the Guest Shutdown service. We checked both on lab machines.

Is anything uploaded?

No. The one-liner only reads the System log and writes one XML file on your Desktop. This page reads that file in your browser.

Can I use Event Viewer instead?

Yes. Open the System log, choose Save All Events As, and save as XML. The output of Get-WinEvent piped to ConvertTo-Json also works, and so does wevtutil qe System /f:xml.

Built by the RFF team. More free Windows tools.