How To Fix Windows 11 PC Waking Up From Sleep By Itself (2026)
Your Windows 11 PC wakes up from sleep by itself, sometimes in the middle of the night, even though nobody touched it.
This is usually a setting or a connected device telling the computer to wake, not a sign that something is broken.
This guide shows how to find what woke it and switch that trigger off, and it takes about 15 minutes.
Quick answer: find the trigger, then turn it off
| What you see | Likely cause | What to try |
|---|---|---|
| PC is awake every morning | A scheduled task with a wake timer | Check powercfg /waketimers, then turn wake timers off |
| Wakes when the desk is bumped | Mouse is allowed to wake the PC | Clear the wake permission in Device Manager |
| Wakes at random while on a network | Network adapter wake setting | Limit or turn off wake on the adapter |
| Wakes around the same time each day | Maintenance or update job | Stop maintenance from waking the PC |
Why does my PC wake up from sleep by itself?
Windows lets certain devices and timers wake a sleeping PC on purpose, so one of them is probably firing when you do not expect it.
The usual triggers are a mouse or keyboard, the network adapter, a wake timer set by a scheduled task, and maintenance work.
The fastest route is to ask Windows what woke it last, then change only that one thing.
Step 1: Ask Windows what woke the PC
Right after an unexpected wake, right-click the Start button and open Terminal (Admin), or open Command Prompt as administrator.
- Type
powercfg /lastwakeand press Enter. - Read the device or process named in the result.
- Write it down, because it points to the step below that you need.
Microsoft documents this command as the one that reports what ended the most recent sleep, and a result with no name does not rule out a timer.
Step 2: See which timers can wake the PC
In the same window, type powercfg /waketimers and press Enter.
Microsoft says this lists the active wake timers, and an expiring timer can wake the PC from sleep.
If a task such as a backup or an app updater appears, you now know which program is setting the alarm, and you can change its schedule in that program.
Step 3: Turn off wake timers
- Click Start, type Edit power plan, and open it.
- Click Change advanced power settings.
- Expand Sleep, then expand Allow wake timers.
- Choose Disable (laptops have one choice for battery and one for plugged in), then click Apply and OK.
There is also an Important Wake Timers Only choice, which is a gentler middle option, and the labels may differ slightly by Windows version.
Step 4: Stop the mouse or another device from waking the PC
Run powercfg /devicequery wake_armed to list every device currently allowed to wake the computer.
- Open Device Manager from the Start menu search.
- Expand the device group, right-click the device, and choose Properties.
- Open the Power Management tab and clear Allow this device to wake the computer.
Leave the keyboard enabled so you can still wake the PC without reaching for the power button, or see our keyboard guide if it misbehaves.
Step 5: Check the network adapter wake setting
Network traffic can wake a PC when its adapter is allowed to listen while asleep.
Microsoft explains that, without limits, the adapter can wake the PC for ordinary traffic such as address checks, and it recommends waking only on a magic packet, a special wake-up message.
In Device Manager, open Network adapters, open the adapter’s Properties, go to Power Management, and either clear the wake box or tick Only allow a magic packet to wake the computer, although Microsoft’s page describes older Windows versions, so the label may differ.
Step 6: Stop maintenance from waking the PC
Windows can run scheduled maintenance, and it has a setting that lets that work wake the PC.
- Open Control Panel and select Security and Maintenance.
- Expand Maintenance and click Change maintenance settings.
- Clear the box that lets scheduled maintenance wake the computer, then click OK.
For updates, open Settings, go to Windows Update, and use Schedule the restart so restarts happen when you pick.
What do the powercfg commands show?
| Command | What it shows |
|---|---|
powercfg /lastwake | What woke the PC from its latest sleep |
powercfg /waketimers | Active timers that can wake the PC |
powercfg /devicequery wake_armed | Devices allowed to wake the PC |
powercfg /devicedisablewake "device name" | Stops one named device from waking the PC |
powercfg /requests | Programs that keep the PC from sleeping |
As of November 2026 these commands are still documented by Microsoft, and the device name must match the wake_armed list exactly.
Why does my PC still wake after I changed these settings?
The wake may come from a task that has its own switch, so open Task Scheduler, open that task’s Properties, and clear Wake the computer to run this task on the Conditions tab.
You can also open Event Viewer, go to Windows Logs, then System, and filter for the source Power-Troubleshooter to see past wakes.
If you also see sleep problems the other way around, read our guide on a laptop that will not wake or the one on a computer that keeps going to sleep.
Why did my PC stop doing a scheduled job after this?
Turning off wake timers means a backup or maintenance job can no longer wake the PC to run.
If that happens, set the job to run while you are using the PC, or switch wake timers back to Important Wake Timers Only.
If you turned off the wrong device, go back to its Power Management tab in Device Manager and tick the wake box again.
When it is a hardware fault or time to contact the PC maker
If powercfg /lastwake keeps showing nothing useful and the PC still wakes with every setting off, a faulty power button, a stuck key, or a firmware problem may be the cause.
Check for a BIOS or firmware update from the PC maker, and contact their support if a clean restart does not change anything.
Official sources: Powercfg command-line options, Unwanted wake-up events, Windows Update FAQ.