DEV Community

Bryz︱🦾
Bryz︱🦾

Posted on

🔄 PC Restarted by Itself? Ask Windows Why Before You Guess

"I was in the middle of something and my PC just restarted!" 😱

Every help desk hears this. The tempting move is to shrug and blame updates. But Windows keeps a detailed record of every shutdown, and finding the real cause takes about two minutes. Let's go. 👇

📅 Step 1: Open Reliability Monitor

This is the most underrated tool in Windows. Press Win + R and run:

perfmon /rel
Enter fullscreen mode Exit fullscreen mode

You get a timeline. Red ❌ icons mark critical events such as app crashes, "Windows was not properly shut down", and blue screens. Click a day to see exactly what happened and when. It's perfect for showing a user, too.

🔍 Step 2: Read the event IDs

For the details, open Event Viewer > Windows Logs > System and filter for these IDs:

Event ID What it means
🔁 1074 A planned restart or shutdown. It names the process or user that started it (for example, Windows Update or a user clicking Restart).
⚡ 41 (Kernel-Power) The system rebooted without shutting down cleanly: power loss, hard freeze, or a crash.
⚠️ 6008 The previous shutdown was unexpected.
💥 1001 (BugCheck) The PC hit a blue screen. The stop code is in the details.

Or skip the clicking and use PowerShell:

Get-WinEvent -FilterHashtable @{LogName='System'; Id=41,1074,6008,1001} -MaxEvents 10 |
    Format-Table TimeCreated, Id, ProviderName, Message -AutoSize -Wrap
Enter fullscreen mode Exit fullscreen mode

Match the timestamps to when the user says it happened. Now you have evidence, not a guess. ✅

🛠️ Step 3: Fix the real cause

Planned restart (1074) from Windows Update? 🕘
Go to Settings > Windows Update > Advanced options > Active hours and set them to cover the user's workday. In a managed environment, check the update policy (Intune or Group Policy) before changing anything locally.

Unexpected shutdown (41 / 6008) with no blue screen? 🔌
Think power. Loose plug, failing power strip, a dock that drops out, or a dying laptop battery. Overheating can do it too, so check the vents and fans.

Blue screen (1001)? 💥
Note the stop code. Check for dump files in:

C:\Windows\Minidump
Enter fullscreen mode Exit fullscreen mode

A recent driver or update is a common culprit, so look at what changed around that date. Then update or roll back the driver and escalate with the stop code if it keeps happening.

💡 Why this matters

"It restarted" can mean three totally different problems. Reading the logs first saves you from reinstalling drivers when the real issue was a loose power cable. 😅 And your ticket notes look way more professional.

👇 Your turn

What's your first move when a user says their PC "randomly" rebooted? Drop it in the comments!

Top comments (0)