Microsoft’s official troubleshooting documentation defines Event ID 41 with the blunt brevity of a police blotter: "The system has rebooted without cleanly shutting down first". That single line is a symptom, not a diagnosis. It does not distinguish a dying power supply from an unstable memory profile, an overheating graphics card, a bad driver, or a firmware quirk. Swapping out a PSU simply because Event Viewer flashed red is an expensive coin flip. A methodical, 12-step diagnostic workflow—requiring roughly 60 minutes of hands-on setup and inspection, followed by unattended overnight memory testing, 90-minute stress runs, and a multi-day observation window—turns blind part-swapping into an evidence-based elimination process.
Why Random Restarts Happen and What Event 41 Actually Records
When Windows 11 loses control of your system unexpectedly, it typically fails in one of three broad ways:
- A Stop Error (Bugcheck): Windows catches a fatal kernel or driver fault, attempts to write a memory dump and stop code to disk, and reboots.
- A Hardware Machine-Check Exception: The processor or platform reports a hardware fault, often logged by WHEA-Logger before or alongside a crash.
- An Abrupt Power Drop or Hard Hang: Power vanishes, a thermal or electrical protection circuit trips, or the system locks so completely that Windows cannot write a dump before rebooting.
Event ID 41 appears after all three, which is why Microsoft's Event ID 41 guidance splits investigations into three distinct scenarios based on the fields tucked inside the event's XML payload: BugcheckCode and PowerButtonTimestamp.
- Scenario 1 (Nonzero
BugcheckCode): Windows hit a Stop error and recorded its decimal code (note that Microsoft's bug check references use 8-digit hexadecimal, so decimal159translates to0x0000009F, orDRIVER_POWER_STATE_FAILURE). - Scenario 2 (Nonzero
PowerButtonTimestamp): Someone held down the physical power button for at least four seconds—meaning the real culprit is likely whatever froze the PC in the first place. - Scenario 3 (Zero values or no Event 41): Windows shut down too quickly to record error codes or lost write access to the drive. Crucially, a zero
BugcheckCodedoes not prove a faulty power supply; Microsoft warns to check forvolmgrEvent ID 46 ("Crash dump initialization failed!"), which indicates Windows tried to crash with a Stop error but lacked a properly configured page file to save the dump.
| Cause Family | Typical Forensic Clue | Primary Suspects |
|---|---|---|
| Power Delivery | BugcheckCode 0, no neighbor errors, fails under peak draw | PSU capacity/aging, loose cables, motherboard VRM, wall circuit |
| Memory & CPU Stability | WHEA-Logger IDs 18 or 19, varying/random stop codes | Aggressive XMP/EXPO profiles, faulty DIMM or slot, unstable overclocks |
| Thermals | Restarts cluster after sustained load following clock drops | Failed pump/fan, dried thermal paste, choked case airflow |
| Drivers & Firmware | Repeatable stop codes or display driver resets | GPU/chipset drivers, outdated BIOS/AGESA microcode, dying SSD |
| OS & Windows Updates | Restarts begin cleanly on a specific patch date | Corrupt system files, problematic cumulative updates, scheduled tasks |
Section summary: Event 41 confirms an unclean reboot, nothing more. Checking BugcheckCode, PowerButtonTimestamp, and surrounding System log entries prevents you from buying hardware you do not need.
Prerequisites, Time Budget, and Current Windows 11 Context
Before touching a setting, separate hands-on time from wall-clock testing time. Steps 1 through 6 and the active inspections in Steps 10 through 12 take about 60 minutes of your direct attention. However, thorough memory diagnostics run unattended overnight, isolated thermal stress runs require roughly 90 minutes, and verifying an intermittent fix requires running normal workloads for up to a week.
Everything below runs on Windows 11 version 26H2 (OS build 26300 family, generally available since September 29, 2026) or version 25H2 (OS build 26200 family) using an administrator account—note that Microsoft also ships version 26H1 (OS build 28000 family) exclusively for select newer early-2026 devices rather than as an in-place upgrade for existing 24H2/25H2 PCs. Keep a second device nearby so you can check notes if the machine under test reboots mid-session.
| Tool | Purpose | Cost |
|---|---|---|
| Windows 11 (26H2 or 25H2) | Built-in wevtutil, PowerShell 5.1/7, mdsched.exe | Already installed |
Python 3.10+ & psutil | Runs the event-log classifier and 1-second sensor logger | Free |
| HWiNFO | Logs CPU/GPU temperatures, board power, fan RPMs, and voltages | Free |
| MemTest86 or MemTest86+ | Bootable USB multi-pass memory verification | Free |
| WinDbg (Microsoft Store) | Inspects C:\Windows\Minidump files when Stop errors occur | Free |
nvidia-smi | Included with NVIDIA drivers for GPU telemetry (AMD/Intel users log via HWiNFO) | Free |
Create a dedicated workspace folder—such as C:\restart-lab—and open a plain-text change log file where you record every tweak, update, or hardware adjustment alongside its exact date and time.
Steps 1 to 3: Freeze the Evidence Before Changing Anything
Changing settings before locking down diagnostics destroys your baseline. Perform these three zero-risk steps first.
Step 1: Record Your Exact Windows Build and BIOS Version
Restart waves frequently align with a Windows cumulative update or firmware change. For context, Microsoft’s November 10, 2026 security release (KB5132061) moved Windows 11 26H2 to build 26300.9974 (and 25H2 to 26200.9974), while the optional November 19 preview update (KB5132057) bumped them to 26300.10075 and 26200.10075. Capture your system's exact state in an elevated PowerShell window and paste the output into your change log:
Get-ComputerInfo | Select-Object WindowsProductName, WindowsVersion, OsBuildNumber, BiosSMBIOSBIOSVersion, BiosReleaseDate, CsManufacturer, CsModel
Step 2: Disable Automatic Restart on System Failure
By default, Windows reboots immediately after a Stop error, often hiding the blue-screen code before you can read it. To force the crash screen to stay visible, open System Properties > Advanced > Startup and Recovery > Settings and clear Automatically restart. Alternatively, run these elevated commands to disable auto-reboot and enable small memory dumps (256 KB / Minidump):
reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v AutoReboot /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v CrashDumpEnabled /t REG_DWORD /d 3 /f
Step 3: Verify Crash Dump and Page-File Readiness
Ensure your boot drive has an active, system-managed page file and adequate free space, then confirm the crash settings took effect:
Get-CimInstance Win32_OSRecoveryConfiguration | Select-Object AutoReboot, DebugInfoType, DebugFilePath, MiniDumpDirectory
Success looks like AutoReboot returning False and DebugInfoType returning 3. If future restarts still produce no files in C:\Windows\Minidump, inspect the System log for volmgr Event ID 46, which signals dump initialization failed—usually due to a disabled page file or a full boot partition. A related volmgr Event ID 161 means dump file creation failed during a crash.
Section summary: Recording build/BIOS baselines and disabling auto-reboot ensures the next crash leaves actionable forensics rather than another blank mystery.
Step 4: Query the System Event Log Properly
Clicking through Event Viewer one row at a time obscures patterns. Pull the last 30 days of relevant shutdown, crash, and hardware events into a single chronological PowerShell table:
Get-WinEvent -FilterHashtable @{LogName='System'; Id=41,1001,6008,1074,18,19,46; StartTime=(Get-Date).AddDays(-30)} |
Sort-Object TimeCreated |
Select-Object TimeCreated, Id, ProviderName, @{n='FirstLine';e={($_.Message -split "`n")[0]}} |
Format-Table -AutoSize
Each companion ID narrows the field:
- 1074: A user or application deliberately requested the restart (for example, Windows Update or an installer).
- 6008: Windows logged that the previous shutdown was unexpected.
- 1001: Windows Error Reporting (
BugCheck) recorded a Stop error and potentially saved a dump. - 18 & 19 (
WHEA-Logger): Event 18 flags an uncorrected/fatal hardware error (such as a machine-check exception), while Event 19 logs a corrected hardware error. Repeated Event 19 warnings often precede full crashes. - 46 (
volmgr): Crash dump initialization failed.
Next, extract the hidden XML fields inside the five newest Event 41 entries:
Get-WinEvent -FilterHashtable @{LogName='System'; Id=41} -MaxEvents 5 | ForEach-Object {
$x = [xml]$_.ToXml()
$d = @{}
$x.Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }
[pscustomobject]@{
Time = $_.TimeCreated
BugcheckCode = $d['BugcheckCode']
PowerButton = $d['PowerButtonTimestamp']
}
}
If BugcheckCode is nonzero, convert it to hexadecimal (e.g., via Windows Calculator in Programmer mode) and analyze the minidump in WinDbg. If PowerButton is nonzero, investigate system hangs rather than spontaneous power loss.
Steps 5 and 6: Automate Log Correlation and High-Frequency Sensor Capture
To turn dozens of scattered restarts into a readable timeline, you can deploy two lightweight Python utilities in C:\restart-lab. Important caveat: These scripts are practical diagnostic aids—not Microsoft-validated diagnostic engines. Treat their output labels as sorting clues rather than final verdicts.
Step 5: Deploy restart_forensics.py
Save the following script as C:\restart-lab\restart_forensics.py. It uses Windows' built-in wevtutil to parse Event 41 records and tag each reboot using a strict rule hierarchy (PLANNED -> WHEA-FATAL -> BUGCHECK -> POWER-BUTTON -> WHEA-CORRECTED -> HARD-RESET).
Keep two limitations in mind when reading its output:
- Its search window inspects events up to 10 minutes before and 5 minutes after an Event 41 timestamp, meaning closely spaced reboots can share neighbor events, and the single highest-priority verdict can mask secondary clues.
HARD-RESETis simply a catch-all label meaning no selected companion event or nonzero field matched; it does not prove a power supply failed.
#!/usr/bin/env python3
"""restart_forensics.py: classify unclean Windows restarts from the System event log."""
import argparse
import csv
import statistics
import subprocess
import sys
import xml.etree.ElementTree as ET
from collections import Counter
from datetime import datetime, timedelta, timezone
NS = {"e": "http://schemas.microsoft.com/win/2004/08/events/event"}
WATCH_IDS = (41, 1001, 6008, 1074, 18, 19, 46)
MAX_SENSOR_GAP_S = 300
ADVICE = {
"BUGCHECK": "Read the stop code. Run WinDbg on C:\\Windows\\Minidump, then test drivers, RAM and the GPU.",
"WHEA-FATAL": "Fatal hardware error. Reset BIOS to defaults, drop XMP/EXPO, test RAM and CPU stability.",
"WHEA-CORRECTED": "Corrected hardware errors near the restart. Treat as an early warning for RAM, CPU or PCIe.",
"HARD-RESET": "No stop code and no precursors. Prime suspects: PSU, power cabling, thermal shutdown, motherboard.",
"POWER-BUTTON": "Power button was held. The PC probably froze first. Look for hangs, not restarts.",
"PLANNED": "A process asked for this restart (Event 1074). Check Windows Update and installers.",
}
def parse_time(raw):
raw = raw.rstrip("Z")
if "." in raw:
head, frac = raw.split(".")
raw = f"{head}.{frac[:6].ljust(6, '0')}"
return datetime.fromisoformat(raw).replace(tzinfo=timezone.utc)
def query_events(days):
ms = int(days * 86400 * 1000)
ids = " or ".join(f"EventID={i}" for i in WATCH_IDS)
query = f"*[System[({ids}) and TimeCreated[timediff(@SystemTime) <= {ms}]]]"
cmd = ["wevtutil", "qe", "System", "/q:" + query, "/f:xml", "/rd:false", "/c:2000"]
return subprocess.run(cmd, capture_output=True, text=True, check=True).stdout
def parse_events(xml_text):
root = ET.fromstring("<Events>" + xml_text + "</Events>")
events = []
for ev in root.findall("e:Event", NS):
sysnode = ev.find("e:System", NS)
data = {}
for i, node in enumerate(ev.findall("e:EventData/e:Data", NS)):
data[node.get("Name") or f"p{i}"] = (node.text or "").strip()
events.append({
"id": int(sysnode.find("e:EventID", NS).text),
"provider": sysnode.find("e:Provider", NS).get("Name"),
"time": parse_time(sysnode.find("e:TimeCreated", NS).get("SystemTime")),
"data": data,
})
events.sort(key=lambda x: x["time"])
return events
def to_int(value):
try:
return int(value, 0)
except (TypeError, ValueError):
return 0
def classify(events, window_min):
rows = []
window = timedelta(minutes=window_min)
for ev in events:
if ev["id"]!= 41:
continue
near = [
x for x in events
if x is not ev and ev["time"] - window <= x["time"] <= ev["time"] + timedelta(minutes=5)
]
ids = {x["id"] for x in near}
code = to_int(ev["data"].get("BugcheckCode"))
button = to_int(ev["data"].get("PowerButtonTimestamp"))
if 1074 in ids:
verdict = "PLANNED"
elif 18 in ids:
verdict = "WHEA-FATAL"
elif code!= 0 or 1001 in ids:
verdict = "BUGCHECK"
elif button!= 0:
verdict = "POWER-BUTTON"
elif 19 in ids:
verdict = "WHEA-CORRECTED"
else:
verdict = "HARD-RESET"
rows.append({
"time": ev["time"],
"verdict": verdict,
"bugcheck": hex(code) if code else "0x0",
"neighbors": ",".join(str(i) for i in sorted(ids)) or "-",
"advice": ADVICE[verdict],
})
return rows
def load_sensors(path):
samples = []
with open(path, newline="", encoding="utf-8") as fh:
for row in csv.DictReader(fh):
row["_t"] = datetime.fromisoformat(row["utc"]).replace(tzinfo=timezone.utc)
samples.append(row)
return samples
def attach_sensors(rows, samples):
for row in rows:
before = [s for s in samples if s["_t"] <= row["time"]]
if not before:
row["last_sample"] = "no sensor data"
continue
last = before[-1]
gap = int((row["time"] - last["_t"]).total_seconds())
if gap > MAX_SENSOR_GAP_S:
row["last_sample"] = "logger was not running near this restart"
continue
row["last_sample"] = (
f"{gap}s before boot: GPU {last['gpu_temp_c']}C, "
f"{last['gpu_power_w']}W, GPU load {last['gpu_util_pct']}%, CPU load {last['cpu_pct']}%"
)
def summarize(rows):
print(f"Unclean restarts found: {len(rows)}")
for verdict, n in Counter(r["verdict"] for r in rows).most_common():
print(f" {verdict:<15} {n}")
if len(rows) > 1:
gaps = [(b["time"] - a["time"]).total_seconds() / 3600 for a, b in zip(rows, rows[1:])]
print(f"Median gap between restarts: {statistics.median(gaps):.1f} h")
hours = Counter(r["time"].astimezone().hour for r in rows)
if hours:
hour, n = hours.most_common(1)[0]
print(f"Busiest local hour: {hour:02d}:00 ({n} restarts)")
def print_table(rows):
print(f"{'WHEN (UTC)':<20} {'VERDICT':<15} {'BUGCHECK':<10} NEIGHBOR EVENTS")
for r in rows:
print(f"{r['time']:%Y-%m-%d %H:%M:%S} {r['verdict']:<15} {r['bugcheck']:<10} {r['neighbors']}")
if "last_sample" in r:
print(f"{'':<20} sensors: {r['last_sample']}")
def write_csv(rows, path):
keys = ["time", "verdict", "bugcheck", "neighbors", "advice", "last_sample"]
with open(path, "w", newline="", encoding="utf-8") as fh:
writer = csv.DictWriter(fh, fieldnames=keys, extrasaction="ignore")
writer.writeheader()
writer.writerows(rows)
def event_xml(eid, provider, when, **data):
items = "".join(f'<Data Name="{k}">{v}</Data>' for k, v in data.items())
return (
f'<Event xmlns="{NS["e"]}"><System><Provider Name="{provider}"/><EventID>{eid}</EventID>'
f'<TimeCreated SystemTime="{when}"/></System><EventData>{items}</EventData></Event>'
)
def selftest():
xml = "".join([
event_xml(18, "Microsoft-Windows-WHEA-Logger", "2026-11-20T21:02:10.1234567Z"),
event_xml(41, "Microsoft-Windows-Kernel-Power", "2026-11-20T21:04:00.0000000Z", BugcheckCode="0", PowerButtonTimestamp="0"),
event_xml(41, "Microsoft-Windows-Kernel-Power", "2026-11-22T14:30:00.0000000Z", BugcheckCode="0", PowerButtonTimestamp="0"),
event_xml(1001, "Microsoft-Windows-WER-SystemErrorReporting", "2026-11-24T09:15:30.0000000Z", param1="0x00000124"),
event_xml(41, "Microsoft-Windows-Kernel-Power", "2026-11-24T09:15:00.0000000Z", BugcheckCode="292", PowerButtonTimestamp="0"),
event_xml(41, "Microsoft-Windows-Kernel-Power", "2026-11-26T18:00:00.0000000Z", BugcheckCode="0", PowerButtonTimestamp="133800000000000000"),
])
rows = classify(parse_events(xml), 10)
got = [r["verdict"] for r in rows]
want = ["WHEA-FATAL", "HARD-RESET", "BUGCHECK", "POWER-BUTTON"]
assert got == want, f"expected {want}, got {got}"
samples = [{
"utc": "2026-11-22T14:29:58",
"gpu_temp_c": "71",
"gpu_power_w": "338.4",
"gpu_util_pct": "99",
"cpu_pct": "41",
}]
for s in samples:
s["_t"] = datetime.fromisoformat(s["utc"]).replace(tzinfo=timezone.utc)
attach_sensors(rows, samples)
print_table(rows)
summarize(rows)
print("selftest passed")
def main():
ap = argparse.ArgumentParser(description=__doc__)
ap.add_argument("--days", type=float, default=30, help="how far back to read the System log")
ap.add_argument("--window-min", type=float, default=10, help="minutes of context around each Event 41")
ap.add_argument("--sensor-log", help="CSV written by thermal_logger.py")
ap.add_argument("--csv", help="write the verdict table to this CSV file")
ap.add_argument("--selftest", action="store_true", help="run against built-in sample events")
args = ap.parse_args()
if args.selftest:
selftest()
return
if sys.platform!= "win32":
sys.exit("Run this on the Windows PC that is restarting (wevtutil is Windows-only).")
rows = classify(parse_events(query_events(args.days)), args.window_min)
if args.sensor_log:
attach_sensors(rows, load_sensors(args.sensor_log))
print_table(rows)
summarize(rows)
if args.csv:
write_csv(rows, args.csv)
print(f"Wrote {args.csv}")
if __name__ == "__main__":
main()
Step 6: Start thermal_logger.py to Capture Pre-Crash Telemetry
Many monitoring utilities buffer writes in RAM, losing the final seconds before a hard reset. Save C:\restart-lab\thermal_logger.py below. It logs CPU load and NVIDIA GPU metrics once per second, calling flush() and os.fsync() on every line to give recent telemetry the best possible chance of hitting the storage drive before a sudden power drop (note that drive write-caches or abrupt power cuts can still drop an in-flight write, so view it as best-effort preservation rather than an unbreakable flight recorder). AMD Radeon and Intel Arc owners should run HWiNFO's built-in CSV logging alongside this script since nvidia-smi will return blank GPU columns.
#!/usr/bin/env python3
"""thermal_logger.py: write one flushed CSV row per second to help preserve pre-reset readings."""
import argparse
import csv
import os
import shutil
import subprocess
import time
from datetime import datetime, timezone
import psutil
FIELDS = ["utc", "cpu_pct", "gpu_temp_c", "gpu_power_w", "gpu_util_pct", "gpu_clock_mhz"]
QUERY = "temperature.gpu,power.draw,utilization.gpu,clocks.sm"
def read_gpu():
if not shutil.which("nvidia-smi"):
return ["", "", "", ""]
out = subprocess.run(
["nvidia-smi", f"--query-gpu={QUERY}", "--format=csv,noheader,nounits"],
capture_output=True,
text=True,
).stdout.strip().splitlines()
return [v.strip() for v in out[0].split(",")] if out else ["", "", "", ""]
def main():
ap = argparse.ArgumentParser(description=__doc__)
ap.add_argument("--out", default="sensors.csv")
ap.add_argument("--interval", type=float, default=1.0)
args = ap.parse_args()
fresh = not os.path.exists(args.out)
with open(args.out, "a", newline="", encoding="utf-8") as fh:
writer = csv.writer(fh)
if fresh:
writer.writerow(FIELDS)
print(f"Logging to {args.out}. Press Ctrl+C to stop.")
while True:
temp, power, util, clock = read_gpu()
writer.writerow([
datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S"),
psutil.cpu_percent(interval=None),
temp,
power,
util,
clock,
])
fh.flush()
os.fsync(fh.fileno())
time.sleep(args.interval)
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print("Stopped.")
Install psutil, run the forensics self-test to confirm there are no copy-paste errors, and launch the logger:
py -m pip install psutil
py C:\restart-lab\restart_forensics.py --selftest
py C:\restart-lab\thermal_logger.py --out C:\restart-lab\sensors.csv
When --selftest passes, you will see four sample verdicts (WHEA-FATAL, HARD-RESET, BUGCHECK, POWER-BUTTON) alongside the summary statistics. Once satisfied, run py C:\restart-lab\restart_forensics.py --days 30 against your real System log to establish your starting clue table:
| Script Label | Rule Triggered | First Troubleshooting Target |
|---|---|---|
PLANNED | Event 1074 nearby | Windows Update, installers, scheduled tasks (Step 11) |
WHEA-FATAL | Event 18 nearby | Stock BIOS defaults, memory tests (Steps 7 & 8) |
BUGCHECK | Nonzero BugcheckCode or Event 1001 | WinDbg minidump inspection, drivers, RAM (Steps 8 & 11) |
POWER-BUTTON | Nonzero PowerButtonTimestamp | System hangs, thermals, storage/USB lockups (Step 9) |
WHEA-CORRECTED | Event 19 nearby | Marginal RAM, CPU tuning, PCIe stability (Steps 7 & 8) |
HARD-RESET | Code 0 and no selected neighbors | Thermals, power delivery, stock BIOS defaults (Steps 7, 9 & 10) |
Steps 7 to 10: Isolate Stock Settings, Memory, Heat, and Power
With logging active, test hardware subsystems systematically without overlapping variables.
Step 7: Strip the System Back to Stock Settings
Microsoft’s Event 41 checklist explicitly instructs users to "Disable overclocking" and test at default configurations. Enter your BIOS/UEFI and load optimized defaults—then manually double-check that Intel XMP or AMD EXPO, Curve Optimizer offsets, PBO enhancements, and motherboard power-limit unlocks are turned off. On the desktop, reset utilities such as MSI Afterburner to stock defaults. Remember that a rated DDR5 XMP/EXPO profile is technically an overclock above baseline JEDEC speeds and can trigger silent resets or WHEA errors.
On AMD AM5 platforms, also check your motherboard vendor's release notes before assuming default voltage behavior is locked down. In late November 2026, ASUS and MSI began rolling out BIOS updates built on AMD AGESA ComboAM5 PI 1.3.0.1f Patch A, which caps maximum core voltage (Vcore) at 1.4 V on select Ryzen 8000 processors and introduces a sequential 00 to 09 POST debug-code display so users do not mistake longer DDR5 memory training for a frozen boot. Run at stock settings for several days; if restarts vanish, your tuning—not your hardware—was at fault.
Step 8: Test Memory at JEDEC Baseline First, Then With Profiles
Memory faults can corrupt kernel pointers and trigger wildly inconsistent stop codes. Start with Windows Memory Diagnostic (Win+R, run mdsched.exe, reboot to scan) and review its log afterward:
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-MemoryDiagnostics-Results'} -MaxEvents 3 | Format-List TimeCreated, Message
Because mdsched.exe is relatively shallow, follow up with an overnight bootable USB run of MemTest86 or MemTest86+. Test at JEDEC default speeds first, then re-test with XMP/EXPO re-enabled. Passing at JEDEC and failing with XMP/EXPO means the modules are likely healthy, while the overclock profile is too aggressive for your CPU's memory controller or motherboard. Any error at default JEDEC speed points to a physical defect—test one stick at a time across slots before ordering replacements.
Step 9: Check Thermals and Isolate CPU vs. GPU Loads
Thermal shutdowns normally announce themselves through clock throttling before power cuts out. Launch HWiNFO in Sensors-only mode and start CSV logging for CPU package temperature, per-core clocks, CPU package power, GPU core and hotspot temperatures, GPU board power, and fan RPMs. Compare temperatures against your processor and GPU makers' official maximum operating limits—not forum hearsay. A GPU hotspot far higher than its core temperature suggests dried paste or uneven cooler mounting.
To separate heat from power delivery without triggering an instant blackout that tells you nothing, test one load at a time:
- 30 minutes CPU-only stress (watch for thermal throttling or WHEA errors).
- 30 minutes GPU-only stress (watch GPU hotspot and power draw).
- 30 minutes combined CPU + GPU stress (stop immediately if any chip nears its published thermal ceiling).
As a troubleshooting heuristic, restarts isolated to the CPU test point toward cooling, CPU/RAM stability, or motherboard VRMs; restarts isolated to the GPU test implicate the graphics card, its cooler, or its PCIe power cabling; and passing both individual runs only to crash rapidly under combined load suggests total system power draw may be overwhelming the power supply. Always verify against your 1-second sensor logs: climbing temperatures followed by dropping clocks tell a thermal story, whereas an instant reset at safe temperatures under peak board power points toward electrical delivery.
Step 10: Inspect Power Connections and Validate the PSU Safely
A worn power supply does not always fail cleanly—aging capacitors or sensitive over-current protection can trip under transient GPU/CPU spikes, leaving only a zero-code Event 41.
- Power down, unplug the PC, and reseat internal power connectors (24-pin ATX, 4/8-pin EPS CPU, and GPU power cables). Never mix modular PSU cables between different power supply models or brands, as pinouts vary and mismatched cables can cause immediate electrical damage.
- Inspect high-power GPU connectors carefully. Modern ATX 3.1 / PCIe 5.1 graphics builds rely on 12V-2x6 connectors. Confirm the plug is seated completely flush with zero gap and no sharp lateral bend right at the housing.
- Rule out the wall circuit. Move the PC off crowded power strips directly onto a known-good wall outlet—or behind an uninterruptible power supply (UPS)—to eliminate household brownouts.
- Substitute, don't open. Never open a power supply chassis. The safest conclusive test is temporarily substituting a known-good PSU with sufficient wattage headroom for transient load spikes. If combined stress runs cleanly on the loaner unit, you have isolated your culprit.
Section summary: Stripping overclocks, testing RAM at JEDEC speeds, splitting CPU/GPU thermal runs, and checking power cables systematically rule out the major hardware failure modes without guessing.
Step 11: Rule Out BIOS Firmware, Drivers, Windows Updates, and Storage
If your logs lean toward BUGCHECK or PLANNED—or if hardware stress tests passed cleanly—audit the software and storage stack:
- Motherboard Firmware: Check your exact motherboard model and PCB revision on the manufacturer's support site (or your OEM support utility for prebuilt desktops like Dell). Read release notes for memory-training or stability fixes, and adhere strictly to vendor flashing rules—for instance, Dell's BIOS/UEFI guidance warns that BIOS passwords, drive passwords, or self-encrypting drive locks can disrupt updates if unmanaged. On AM5 boards moving between AGESA branches, never load old saved BIOS profile files; reconfigure settings manually after flashing.
- Chipset and Graphics Drivers: Update chipset drivers from AMD or Intel, and perform a clean reinstall of your GPU driver. Repeated display-driver timeouts (
TDR) can occasionally escalate into full system resets. - Windows Updates and System Files: Compare the onset date in your change log against recently installed patches:
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 10 HotFixID, Description, InstalledOn
Community threads on Microsoft Q&A have surfaced scattered boot or install complaints around recent November 2026 updates such as KB5132061 (and install error codes on optional preview KB5132057), just as Microsoft previously confirmed and patched a January 2026 KB5073455 regression (Windows 11 23H2) where certain Secure Launch systems restarted instead of shutting down. Treat date alignment strictly as a lead worth testing—not automatic proof. Before uninstalling an update (wusa /uninstall /kb:XXXXXXX), repair core OS files in an elevated terminal:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
- NVMe/SATA Drive Health: A storage controller stalling under I/O can freeze Windows until a watchdog resets the machine. Check physical drive reliability counters in PowerShell for climbing read/write errors or excessive wear:
Get-PhysicalDisk | Get-StorageReliabilityCounter | Select-Object DeviceId, Temperature, Wear, PowerOnHours, ReadErrorsTotal, WriteErrorsTotal
Step 12: Re-Run Forensics and Read the Verdict
After making one change at a time and running your normal daily workload—waiting at least as long as your previous median gap between crashes, ideally a full week—correlate your System log with your sensor CSV:
py C:\restart-lab\restart_forensics.py --days 7 --sensor-log C:\restart-lab\sensors.csv --csv C:\restart-lab\restarts.csv
To launch the sensor logger automatically at every sign-in with elevated privileges so you never forget to start it after a reboot, register a scheduled task:
schtasks /create /tn "RestartLabLogger" /tr "py C:\restart-lab\thermal_logger.py --out C:\restart-lab\sensors.csv" /sc onlogon /rl highest
Reading the Final Pattern
- Repeated
HARD-RESET+ peak GPU/CPU load in the last sensor sample: Points strongly to power delivery or thermal trips; confirm via PSU substitution. - Persistent
WHEA-FATALat stock BIOS settings after passing MemTest86: Narrows suspects to the CPU or motherboard—strong evidence for a vendor RMA/warranty claim. - Identical
BUGCHECKstop codes: Implicates a single misbehaving driver or kernel module; inspectC:\Windows\Minidumpin WinDbg using!analyze -v. - Randomly changing
BUGCHECKcodes: Often points back to unstable memory or marginal power regulation. PLANNEDentries: Check Task Scheduler, installers, and Windows Update active hours.
| Steps | Task | Hands-On Time | Success / Pass Condition |
|---|---|---|---|
| 1–3 | Record baseline, disable auto-reboot, verify dumps | 10 min | AutoReboot False, DebugInfoType 3 |
| 4 | Pull Event 41 XML and companion events | 5 min | Bugcheck/PowerButton fields logged |
| 5–6 | Run restart_forensics.py & thermal_logger.py | 10 min | --selftest passes; CSV updates every second |
| 7 | Reset BIOS/GPU to stock defaults | 10 min | No overclock or XMP/EXPO active |
| 8 | Run mdsched.exe + MemTest86/86+ USB | 5 min setup (overnight run) | Zero errors across multi-pass scan |
| 9 | HWiNFO + isolated CPU/GPU/combined stress | 5 min setup (90 min run) | Temps under spec limits, zero crashes |
| 10 | Inspect cables, wall outlet, test loaner PSU | 15 min | Connectors flush; loaner PSU isolates load faults |
| 11–12 | Audit firmware, drivers, OS files, storage; re-run script | 15 min | Zero new unclean restarts across 1 clean week |
Common Pitfalls and Quick Troubleshooting
- Missing Minidumps (
volmgrEvent 46): Re-enable a system-managed page file on your OS drive and free up at least several gigabytes of disk space. - Restarts Only at Idle: Thermal shutdowns rarely occur at idle. Test with XMP/EXPO disabled, update BIOS/chipset drivers, check Reliability Monitor (
perfmon /rel) for scheduled background tasks, and test disabling Fast Startup (powercfg /h off) temporarily. - Restarts When Plugging in Peripherals: A damaged USB cable or faulty hub can short the 5V rail or crash a controller driver. Disconnect non-essential USB devices one by one.
- Empty GPU Columns in
sensors.csv: Expected on AMD or Intel GPUs becausenvidia-smiis NVIDIA-only; rely on HWiNFO CSV logging for full GPU telemetry. - Script Fails Outside Windows:
restart_forensics.pyrelies onwevtutil.exeand must be executed directly in Windows PowerShell or Command Prompt rather than WSL, macOS, or Linux (though--selftestruns anywhere). - The "Fix Everything at Once" Trap: Updating the BIOS, swapping RAM, and reinstalling Windows in one sitting might hide the problem temporarily, but you will never know which variable failed—and if a marginal component is dying, the restarts will return.
Troubleshooting a mysteriously rebooting Windows 11 PC rewards patience over panic. By capturing crash dumps first, reading the System log beyond that single red Event 41 warning, logging pre-crash sensors, and testing one variable at a time, you trade expensive guesswork for proof—and keep your wallet closed until the evidence earns it.
Correction (November 29, 2026): Three fixes. Volmgr Event ID 161 means dump file creation failed during a crash; only Event ID 46 means crash dump initialization failed, and the Step 3 text now separates them. The January 2026 Secure Launch shutdown regression originated in KB5073455 for Windows 11 23H2, not KB5074109. Stray link markup was removed from the namespace line in the restart_forensics.py sample so the copied script parses events correctly.
References
- PC Randomly Restarts? 12 Steps, 60 Min to Fix It shattered.io · 2026-11-27T16:33:29+00:00
- microsoft.com support.microsoft.com
- microsoft.com support.microsoft.com