You click Shut down, the screen goes black, the fans stop for a second, and then the PC powers straight back on. It's one of the more confusing faults because it can look like a hardware problem when the cause is usually a setting. The usual causes fall into four groups: Windows crashing during shutdown and restarting automatically, fast startup misbehaving, a device or timer waking the PC, or a firmware power setting. This guide works through them in the order that's quickest to check. The Windows commands and settings below are taken from Microsoft's own documentation, and the order of the checks is our advice.
First, check what actually happened
Before changing anything, find out whether Windows thinks it restarted on purpose or crashed. Microsoft's guide to troubleshooting unexpected reboots says the event log can tell you which:
Event ID 1074 (source User32) is logged when a process asks Windows to restart or power off, and it names the process and the reason. Microsoft says a normal reboot is usually Event ID 1074 followed by Event IDs 13 and 6009.
Event ID 41 (Kernel-Power) means the system rebooted without cleanly shutting down first, and Event ID 6008 records that the previous shutdown was unexpected. Microsoft says those two together mark an unexpected reboot.
To look, open Event Viewer, go to Windows Logs > System and filter the log by event ID, entering 1074,41,6008. Then look at the entries from the time you tried to shut down. Microsoft also notes that event ID numbers can be shared by different sources, so check the source column as well as the number.
What you find points you to the right fix:
What the log shows | Likely cause | Go to |
|---|
Event ID 41 and/or 6008 at the time of shutdown | Windows crashed during shutdown and restarted | Step 1 |
Event ID 1074 naming an update or installer | A pending update or app asked for a restart | Step 4 |
Normal shutdown entries, then a fresh boot a few seconds later | Something powered the PC back on | Steps 2 and 3, then Step 5 |
If you only see Event ID 41 and no clear pattern, our Kernel-Power 41 guide goes deeper.
Step 1: Stop Windows restarting automatically after a crash
If Windows hits a stop error (a blue screen) while shutting down and automatic restart is turned on, the PC reboots by itself, which can look as though it simply ignored the shutdown. Turning off automatic restart lets you see the error instead.
Microsoft's documentation on kernel-mode dump files explains where this lives: go to Control Panel > System and Security > System, select Advanced system settings, and under Startup and Recovery select Settings. In that dialogue you can select or deselect the Automatically restart option. Microsoft notes that only an administrator can change these settings. Untick it, select OK and try shutting down again.
If the PC now stops on a blue screen instead of restarting, the restart was a crash, not a setting. Note the stop code and use our blue screen troubleshooting guide. A driver is a sensible first suspect when a crash happens only at shutdown, so check for recent driver or software installs around the time the problem started.
Step 2: Rule out fast startup
Fast startup, which Windows has had since Windows 8, doesn't fully shut the system down. Microsoft's driver documentation explains that a cold startup loads the Windows kernel and drivers from scratch, while a fast startup "simply loads the hibernation file (Hiberfil.sys) into memory". Microsoft also explains that a fast startup is detected when the last power transition was a shutdown but the effective state was hibernation. In other words, part of the system is saved to disk at shutdown and restored at the next boot.
That's usually harmless, but a driver or firmware that doesn't handle the hibernation-style shutdown properly can cause odd behaviour, including the PC coming straight back on. There are two quick ways to test it:
Try a full shutdown once. In an admin Command Prompt or Terminal, run shutdown /s /t 0. Microsoft's shutdown documentation lists /s as "Shuts down the computer" and /t as the time-out in seconds. The separate /hybrid option is the one that "Shuts down the device and prepares it for fast startup", and Microsoft says it must be used with /s. So a plain shutdown /s /t 0 doesn't ask for a fast-startup shutdown. If the PC stays off after that command but comes back on after Start > Power > Shut down, fast startup is the likely cause.
Turn fast startup off. Our guide to disabling fast startup in Windows 11 has the step-by-step instructions. Microsoft says a fast startup tends to take significantly less time than a cold startup, so boots may be slower, but you get a full cold boot every time.
If turning fast startup off fixes the problem, it's worth updating your chipset, storage and network drivers and your motherboard BIOS before deciding to leave it off for good.
Step 3: Find out what is waking the PC
If the log shows a clean shutdown followed by a new boot, something has turned the PC back on. Microsoft's powercfg documentation includes several commands that help. Run them in an admin Command Prompt or Terminal:
Command | What Microsoft says it does |
|---|
powercfg /lastwake
| Reports what woke the system from the last sleep transition |
powercfg /devicequery wake_armed
| Lists devices currently configured to wake the system from any sleep state |
powercfg /waketimers
| Lists the active wake timers |
powercfg /devicedisablewake "device name"
| Stops a named device waking the system |
These commands are about sleep and hibernation, so they're most useful when fast startup is on (because that shutdown is hibernation-based) or when the PC wakes after sleep rather than shutdown. A mouse, keyboard or network adapter in the wake_armed list is the usual culprit. Disable wake for that device with /devicedisablewake, using the exact name from the list (Microsoft's example is powercfg /devicedisablewake "Microsoft USB IntelliMouse Optical").
Network adapters deserve special attention. If you've set up Wake-on-LAN, a packet on your network can power the PC on; our Wake-on-LAN guide explains the settings involved in both Windows and the BIOS. For wake timers and devices that wake the PC from sleep, see our guide to stopping your PC waking from sleep.
Step 4: Check for pending updates and installers
If Event ID 1074 shows an update, an installer or a management tool asking for a restart, the PC may be doing exactly what it was told. Microsoft's unexpected-reboots guide notes that a reboot can be caused by a cumulative update, driver update, application update or a shutdown, and that Event ID 1074 should say what requested it.
Go to Start > Settings > Windows Update and let any pending update finish before you shut down. If you need a break from updates, Microsoft lets you pause them for up to 35 days, and while they're paused your device won't restart automatically to finish installing updates. If an update keeps failing and forcing restarts, our guide to fixing a stuck Windows update can help. Third-party installers and driver tools sometimes request a restart too, and the 1074 entry will name the process.
Step 5: Check the BIOS power settings
If Windows looks clean and the PC still comes back on after a full shutdown with fast startup off, the cause is probably in the motherboard firmware. Names and menus vary by manufacturer, so check your board's manual, but the settings worth reviewing are:
Wake-on-LAN or "power on by PCI-E" settings, which let the network adapter turn the PC on.
USB wake or "power on by keyboard/mouse" settings, which let a USB device turn the PC on.
RTC alarm or scheduled power-on, which turns the PC on at a set time.
Restore on AC power loss, which controls what happens when power returns. It usually only matters after a power cut, but it's worth knowing where it is.
ErP or other low-standby-power settings, if your board has them. The manual will explain what they change about standby power and wake-up.
Change one setting at a time and test after each, so you know which one fixed it. A BIOS update can also fix power-state bugs, but read your board maker's release notes first, and never interrupt a BIOS update.
When it might be hardware
If none of the above helps, and especially if the PC also restarts at random while you're using it, look at hardware. Possible causes include a sticking front-panel power button, a case wiring fault or a power supply problem. Our guide to a PC that restarts or shuts down at random covers the hardware checks, including how to read Event ID 41 details.
Quick checklist
Check Event Viewer for Event IDs 1074, 41 and 6008 at the time of shutdown.
Turn off "Automatically restart" under Startup and Recovery so crashes show their stop code.
Test with shutdown /s /t 0, then turn fast startup off if that fixes it.
Use powercfg /lastwake and powercfg /devicequery wake_armed to find wake sources.
Let pending updates finish before shutting down.
Review wake and power settings in the BIOS, one at a time.
If you're not sure which low-power state you actually want, our sleep vs hibernate explainer explains how they differ.