Windows 11 Wakes From Sleep by Itself: Find the Culprit
You put the laptop on the desk, close the lid, and come back to a warm chassis, a spinning fan, and a lock screen that has been sitting there for two hours. Nothing was touched. A PC that wakes itself is not malfunctioning at random - every wake event on Windows 11 is triggered by something the system logged, and that log is readable in about thirty seconds. The mistake most people make is opening Settings and turning sleep settings on and off, which changes nothing because the trigger lives one layer below those options. This guide starts by asking Windows what woke it up, then disarms the four things that cause almost every case: wake timers, network adapters, USB input devices, and scheduled tasks. Every step gives the exact command or menu path and what a normal result looks like, so you can stop guessing.
Step 1: Ask Windows what actually woke it
Open Windows Terminal or Command Prompt as administrator - right-click Start, choose Terminal (Admin), and approve the prompt. Every command below needs that elevation; without it, Windows silently reports "no wake history" even when there is one. Run the four commands in this order and read each output before moving on.
| Command | What it answers | What a normal result looks like |
|---|---|---|
powercfg /lastwake | Which device or component triggered the most recent wake | A device name and instance path, or "Wake History Count - 0" if nothing external woke it |
powercfg /devicequery wake_armed | Every device currently allowed to wake the PC | A short list - keyboard and mouse only on a healthy desktop; a long list means something is over-permissioned |
powercfg /requests | Which running process is holding a power request and blocking sleep | "None" under each category on an idle machine |
powercfg /waketimers | Scheduled wake timers that will fire later | Either nothing, or a named task with a timestamp you can trace |
Interpret the first one carefully. If /lastwake returns a device, the fix is a device-level permission (Steps 3 and 4). If it returns "Wake History Count - 0" while the PC clearly did wake, the wake came from a wake timer or a hardware event the OS did not attribute to a device - go to Step 2 and Step 6. If /requests lists a process, the machine is not waking so much as never sleeping, which is a different problem with an easier fix: close or reconfigure the program named in the output.
Step 2: Disable wake timers
Windows Update, disk maintenance, and media applications all schedule wake timers. The default on a desktop is "Important Wake Timers Only," which lets Windows Update wake the machine to install patches - a legitimate feature that looks exactly like a bug when it happens at 03:00. On laptops the default is usually off, which is why some people never see this and others see it nightly.
GUI path: Control Panel > Hardware and Sound > Power Options > Change plan settings (on your active plan) > Change advanced power settings > expand Sleep > expand Allow wake timers > set both On battery and Plugged in to Disable. If the Sleep branch has no Allow wake timers entry, the setting is hidden on your build and you need the command version instead.
Command version, which always works and is faster to script:
powercfg /setacvalueindex SCHEME_CURRENT SUB_SLEEP BD3B718A-0680-4D9D-8AB2-E1D2B4AC806D 0
That sets the plugged-in value to 0 (disabled). Swap /setacvalueindex for /setdcvalueindex to change the battery value. Then apply it to the live plan or nothing happens: powercfg /setactive SCHEME_CURRENT. Verify with powercfg /waketimers - the list should come back empty. Valid values are 0 (disable), 1 (enable), and 2 (important wake timers only), so if you later want Windows Update to patch overnight again, use 2 rather than 1.
Step 3: Stop the network adapter from waking the PC
Wake-on-LAN is the second most common cause, and it fires for reasons that have nothing to do with you pressing anything: a router sending ARP probes, a NAS broadcasting, another PC running a network scan, or a smart TV announcing itself over multicast. The adapter treats any of those as a reason to power up. This is why so many "random wake" machines are desktops plugged into Ethernet and almost never laptops on Wi-Fi.
Path: Device Manager (right-click Start > Device Manager) > Network adapters > double-click your Ethernet controller > Power Management tab. Three checkboxes matter:
- Allow the computer to turn off this device to save power - leave this on. Turning it off does not stop wake events and does increase idle power draw.
- Allow this device to wake the computer - clear it. This is the one that matters.
- Only allow a magic packet to wake the computer - appears once the previous box is checked. Setting it is safer than disabling wake entirely if you rely on Wake-on-LAN, because a directed magic packet will still work while stray ARP traffic will not.
If the Power Management tab is missing entirely, the driver does not expose wake control. Update the adapter driver from the vendor (Intel, Realtek, Broadcom) rather than Windows Update's generic package - vendor drivers expose the tab that the inbox driver hides. Repeat the check for any Wi-Fi adapter if you have one, and confirm with powercfg /devicequery wake_armed that the adapter is gone from the list.
Step 4: Rein in USB devices that wake the machine
A mouse that twitches when a truck passes, a keyboard with a stuck key, a game controller charging on the desk, or a USB hub with a device that re-enumerates - all of these can wake a PC. The fix is device by device, because disabling wake globally also disables the one device you actually want to use to wake it.
Run powercfg /devicequery wake_armed and work through the list. For each entry, Device Manager > find the device under Keyboards, Mice and other pointing devices, or Human Interface Devices > Properties > Power Management > clear "Allow this device to wake the computer." Keep exactly one: the keyboard, so you can still wake the machine deliberately. A keyboard wake requires an actual key press, while a mouse wake only requires the optical sensor to see movement - which is why mice cause far more false wakes.
One device type deserves special mention: USB root hubs and "USB Composite Device" entries sometimes carry wake permission and are easy to miss because the name does not look like hardware you own. Hubs with wake enabled will wake the PC when any downstream device is plugged in or starts charging. Clearing that checkbox on the hub is safe and does not affect normal USB function.
Step 5: Find scheduled tasks with wake permission
Wake timers from Step 2 belong to the power plan, but individual scheduled tasks carry their own "Wake the computer to run this task" flag, and that flag survives even with wake timers disabled in some Windows 11 builds. This is the classic cause of a PC waking at the same time every night.
Open Task Scheduler, click Task Scheduler Library in the left pane, then scroll the middle pane. The usual suspects live under Microsoft > Windows: UpdateOrchestrator (patching), Defrag or ScheduledDefrag (drive maintenance), Windows Defender (scan), and Application Experience. Select a task, open the Conditions tab, and look at "Wake the computer to run this task." Clear it and click OK - you may need to right-click the task and choose Properties if the task is read-only.
Calendar-shaped wakes are almost always this. If your PC wakes at 03:00, 03:15, or exactly one hour after you last used it, check the Triggers tab to see the schedule. Third-party software installs tasks too: backup tools, cloud sync clients, game launchers that check for updates, and driver updaters. Sort the task list by name and scan for vendor names you recognize before blaming Windows.
Step 6: Rule out hardware and BIOS-level wakes
If every command came back clean and the PC still wakes, the trigger is below the operating system. Three things cause this.
Fast Startup and hybrid sleep. With fast startup enabled, "shut down" is really a partial hibernate, and some boards treat the transition badly. Run powercfg /a to see which sleep states your hardware supports. If it reports that standby (S3) is unavailable and only "Standby (S0 Low Power Idle)" is listed, your machine uses modern standby - it never truly sleeps, it idles with network connected, so background traffic wakes it constantly. On modern-standby laptops, the real fix is to disable network connectivity in standby: Settings > System > Power & battery > choose what happens on battery, and turn off "Network connectivity in standby" where the OEM exposes it. Many do not, in which case disabling the Wi-Fi adapter's wake permission (Step 3) is the workable answer.
BIOS wake settings. Reboot into firmware setup (usually Del or F2 at power-on) and look for ErP or EuP, Wake on LAN, Wake on USB, and RTC Alarm. Setting ErP to Enabled cuts standby power to the PCIe and USB rails and eliminates most phantom wakes at the cost of losing Wake-on-LAN and USB charging while off. Clear any RTC alarm - an alarm set once and forgotten wakes the machine daily forever.
Peripheral faults. A failing USB device that keeps re-enumerating or a monitor over USB-C negotiating power in a loop can produce wakes with no software cause. Unplug everything but the keyboard, sleep it, and see whether it stays asleep; then plug devices back one at a time.
Step 7: Verify the fix with a sleep study
Do not declare victory after changing settings. Windows can generate a report that shows exactly what happened during every sleep session, including how long the machine was awake while you were not using it. In an administrator terminal run:
powercfg /sleepstudy /output %USERPROFILE%Desktopsleep.html
Open the HTML file. The timeline shows each sleep and wake as a bar, colour-coded by what ended the session - input, network, or a scheduled task. One night of data is usually enough. If the bars still show short wake periods, the colour tells you which of the steps above you have not fully closed. A machine that is genuinely fixed shows long unbroken sleep blocks overnight and one wake in the morning when you press a key.
The companion command powercfg /energy produces a different report focused on efficiency errors, including devices that block sleep and USB devices that fail selective suspend. It takes sixty seconds and complains loudly if a driver is misbehaving.
If it still wakes: the two-hour triage
Set a baseline first. Note the exact time the PC wakes for three nights - an identical time points to a timer or task, a random time points to network or USB traffic. Then apply the isolation test: unplug the Ethernet cable, disable Wi-Fi, and sleep the machine. A PC that stays asleep with no network and wakes immediately once the cable is back has a network trigger, so check the adapter's Advanced tab for "Wake on pattern match" and "Wake on magic packet," both separate from the Power Management checkboxes.
If it wakes with nothing connected, disable all wake permissions until powercfg /devicequery wake_armed returns empty, then re-enable only the keyboard. That is a legitimate end state, not a workaround: a desktop rarely needs anything but a key press to wake it.
Where to go next
Power problems overlap heavily with the rest of this site's Windows troubleshooting, and two guides pair naturally with this one. If your machine is not waking too often but draining its battery far too fast while asleep, the walkthrough on stopping a laptop battery from draining fast covers the power-report side of the same diagnostics. If the machine does not wake at all - black screen on resume, fan spinning, no display - that is a different failure and the guide to screen flickering and display issues on Windows 11 plus our slow startup fix cover the resume path. For checking what is actually running and consuming power in the background, the guide to diagnosing high CPU usage shows how to attribute load to a specific process instead of guessing.
Editorial review
- First published
- Last reviewed
- Applies to
- Sleep and wake behavior on Windows 11 desktops and laptops (Modern Standby and S3 systems)
- Reviewed by
- The TechFix Guide editorial team
New guide. Verified the powercfg command outputs (/lastwake, /devicequery wake_armed, /requests, /waketimers, /setacvalueindex with the SUB_SLEEP wake-timer GUID BD3B718A-0680-4D9D-8AB2-E1D2B4AC806D), the Device Manager Power Management checkboxes for network adapters and USB devices, Task Scheduler wake conditions, and the /sleepstudy and /energy report flags.
Menu paths, option names and file paths in this guide were checked against the version named above. We do not claim to have tested every brand of hardware, so if your build shows something different, tell us and we will correct the page. How we check our guides · Report an error