Skip to content
PCFixWorkbench

Power & sleep · Windows 11

Fix a PC that wakes itself from sleep in the middle of the night

Written November 28, 2026

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.

What you need

Read the problem before you touch it

  1. Ask Windows what woke it. Open Windows Terminal and run powercfg /lastwake. The output names the wake source: a device such as the network adapter or a mouse, a wake timer, or the power button. That one answer decides the whole rest of the fix.
  2. Notice the pattern in the time. Wakes at the same time every night point at a scheduled task or maintenance window. Random wakes point at a device — a sensitive mouse, a network adapter seeing traffic, or a Bluetooth device reconnecting.
  3. Do not disable sleep itself. Sleep is working; something is waking the PC from it. Microsoft's overview of the sleep states is in Shut down, sleep, or hibernate your PC. The fix is removing the wake permission, not the sleep.

The simple fixes, in order

  1. Turn off wake timers. Open Control Panel > Power Options, choose Change plan settings for your plan, then Change advanced power settings. Under Sleep > Allow wake timers, set it to Disable. This stops scheduled tasks from waking the PC while leaving your own key press working.
  2. Stop the mouse waking the PC. In Device Manager, open your mouse under Mice and other pointing devices, go to the Power Management tab, and clear Allow this device to wake the computer. A mouse on a desk that gets bumped, or a wireless mouse reconnecting, is the most common random-wake cause.
  3. Stop the network adapter waking the PC. In Device Manager, open the network adapter, and on its Power Management tab clear Allow this device to wake the computer. If you use Wake on LAN deliberately, instead tick Only allow a magic packet to wake the computer so ordinary network traffic no longer does it.
  4. Move automatic maintenance out of the night. Search for Change automatic maintenance settings and set the daily maintenance time to an hour when the PC being awake does not matter, or clear the option that lets it wake the PC to run.

The advanced route

  1. List everything allowed to wake the PC. In Windows Terminal, run powercfg /devicequery wake_armed. Work through the list in Device Manager and clear the wake permission on anything you do not deliberately use to wake the machine. Microsoft documents the powercfg options in Powercfg command-line options.
  2. Find the scheduled task behind a wake timer. Run powercfg /waketimers as administrator to see active wake timers and the task that set each one. Open that task in Task Scheduler and clear Wake the computer to run this task in its Conditions tab, rather than deleting the task itself.
  3. Check the BIOS wake settings. If the wake source stays unknown, restart into the BIOS or UEFI setup and look for wake-on-LAN, wake on a schedule, or power-on-by-alarm options. A firmware alarm wakes the PC before Windows is involved, so no Windows setting can stop it.

End state

When it goes wrong

Related fixes

Sources