Power & Sleep · Windows 11
Fix a PC that turns itself back on after you shut it down
A PC that restarts itself after shutdown is almost always being woken, not haunted: a wake timer, a network card allowed to wake it, or Fast Startup turning shutdown into a kind of hibernate. Find which wake source fired, then turn that one off.
What you need
- No special tools. Everything here is in Settings, Device Manager, and one command in a terminal. Nothing needs downloading and nothing inside the case needs touching.
- An administrator account. Changing wake settings, device wake permissions, and Fast Startup needs admin rights. Sign in with an admin account before you start.
- One full shutdown to test each change. Change one setting at a time and shut down fully to test it. Changing three things at once tells you the PC stayed off, but not which setting fixed it.
Read the problem before you touch it
- Confirm it is really shutting down. Choose Start > Power > Shut down, not Sleep or Hibernate, and watch the PC power off completely — fans stopped, lights out. If it comes back within seconds or minutes, something is issuing a wake command after shutdown completes.
- Ask Windows what woke it last. Open Windows Terminal or Command Prompt as administrator and run
powercfg /lastwake. Windows names the device or timer that caused the last wake when it recorded one. Microsoft documents the powercfg options in powercfg command-line options. Note the result before changing anything — it points at the right branch below. - Note when it wakes. A PC that wakes at the same time every night points at a scheduled wake timer, often for maintenance or an update. One that wakes when the network is busy, or when another device on the network starts, points at Wake-on-LAN. One that restarts almost immediately points at Fast Startup or a device waking it during the shutdown itself.
The simple fixes, in order
- Turn off Fast Startup first. Open Control Panel > Hardware and Sound > Power Options > Choose what the power buttons do, select Change settings that are currently unavailable, and clear Turn on fast startup. With Fast Startup on, shutdown hibernates the kernel instead of closing it fully, and a wake event during that state can bring the whole PC back. Test a shutdown after this change before going further.
- Stop devices waking the PC. Open Device Manager, expand Network adapters, open your adapter's properties, and on the Power Management tab clear Allow this device to wake the computer. Do the same for any mouse or keyboard that can wake the PC if you bump the desk often. Leave the keyboard you actually use to wake from sleep alone if you rely on that — this guide is about shutdown, and sleep wake can stay.
- Disable Wake-on-LAN if you do not use it. In the same network adapter properties, on the Advanced tab, set Wake on Magic Packet and Wake on pattern match to Disabled if you never wake this PC remotely. If you do use Wake-on-LAN, leave the magic packet on and clear only pattern match — routine network traffic can match a pattern and wake the PC, while a magic packet only arrives on purpose.
The advanced route: wake timers and scheduled tasks
- List the armed wake timers. In an administrator terminal run
powercfg /waketimers. It lists every timer currently allowed to wake the PC and what set it. A timer owned by Windows Update or a maintenance task explains a PC that wakes at a fixed hour. - Turn off automatic wake timers. Go to Settings > System > Power & battery for the basic controls, then in Control Panel > Power Options > Change plan settings > Change advanced power settings, expand Sleep > Allow wake timers and set it to Disable for both battery and plugged in where shown. That stops timers waking the PC at all; scheduled work then runs at the next normal start instead.
- Check the maintenance wake setting. Open Control Panel > Security and Maintenance > Change maintenance settings and clear Allow scheduled maintenance to wake up my computer if it is set. Shut the PC down fully and leave it overnight to confirm the fix.
End state
- The PC stays off after a full shutdown, overnight and during the day.
- powercfg /lastwake after a test shutdown shows no unexpected wake source, or the wake source you kept on purpose.
- Fast Startup, device wake, and wake timers are set the way you chose — not all simply switched off by default.
When it goes wrong
- It still wakes at exactly the same time. A task in Task Scheduler has its own wake setting that survives the plan change. Open the task named by powercfg /waketimers, open its properties, and on the Conditions tab clear Wake the computer to run this task.
- powercfg /lastwake says the wake source is unknown. That happens when the firmware woke the PC without telling Windows why. Check the motherboard's BIOS or UEFI setup for wake-on-LAN, wake-on-alarm, and power-on-after-power-loss settings and turn off the ones you do not use.
- The PC restarts instead of shutting down, every time. That is a crash during shutdown, not a wake. Windows can be set to restart automatically after a system failure; the restart then looks like the PC refusing to stay off. Note any blue screen code at shutdown and follow that code's guide instead.
- Turning off Fast Startup made boot slower. That is expected — Fast Startup was skipping part of the boot. If shutdown now behaves, the trade is usually worth it; if another branch fixed the wake, you can turn Fast Startup back on and test again.
Related fixes
-
Fix a PC whose fans and lights stay on after shutdown
The screen goes dark and Windows closes, but the fans keep spinning and the case lights stay lit — the PC never finished powering off. Turn off Fast Startup first, check which devices are armed to wake it next, and use a full power drain to prove the hardware can switch off.
-
Fix a PC that wakes itself from sleep in the middle of the night
A PC that wakes itself at night is almost always obeying an instruction: a wake timer, a scheduled task, or a device allowed to wake it. Ask Windows what woke it last, then switch off that one permission instead of disabling sleep altogether.
-
Fix a PC that loses sound after waking until you restart the audio service
Sound that works all day, vanishes every time the PC wakes, and comes back when you restart the audio service is a wake-up failure, not a broken speaker — the audio device or its driver is not coming back cleanly from sleep. Stop the service restart from being your routine fix: set the service to recover itself, then fix the driver's power handling.
-
Fix a PC that will not boot after you turn on Secure Boot
Turning on Secure Boot should take a minute, but on a PC installed in legacy mode it leaves Windows unable to start at all. Turn Secure Boot back off first to get your working PC back, check how Windows was installed, and only turn it on again after the disk is converted to the UEFI layout it needs.
Sources
- Microsoft Learn, powercfg command-line options — the /lastwake and /waketimers commands that identify what woke the PC.
- Microsoft Support, Shut down, sleep, or hibernate your PC — the difference between shutdown, sleep, and hibernate, and what each state allows to wake the PC.