A PC never wakes up for no reason - something asked it to. In almost every case it is one of five things: a wake timer set by Windows Update or a backup program, a scheduled task with wake permission, a mouse, keyboard or network adapter allowed to wake the PC, Wake on LAN answering a packet from the network, or Automatic Maintenance. The good news is Windows keeps a record of every wake, so you do not have to guess: the command powercfg /lastwake names the exact culprit, and the rest of this guide is just switching that one trigger off. Work in order and stop as soon as the PC stays asleep through the night.
X The PC wakes in the middle of the night, or the moment you put it to sleep
X The screen lights up and the fans spin while the room is empty
X It happens again the next night, even after a restart
X Putting the PC to sleep again does not help - it wakes itself up the same way
POWERCFG powercfg /lastwake names the exact trigger - a wake timer, a scheduled task or a device - so you fix the real cause instead of turning sleep settings off at random.
The fingerprint of this problem: the PC fully wakes - screen and fans - with no one touching it. The fault is a timer, a task or a wake-enabled device, and Windows records which one it was.
powercfg /lastwake only remembers the most recent wake, and a restart or a new sleep cycle overwrites it. If you already restarted, use the Event Viewer step in Fix 1 instead - that record survives a restart.This is the main step, and it takes about a minute. Guessing wastes an evening - this command tells you whether a timer, a task or a device woke the PC, so every fix after it targets the right thing.
powercfg /lastwake and press Enter. Read the Wake Source line: it will say Wake Timer (a scheduled timer), name a device (mouse, keyboard, network adapter), or name a scheduled task or program.powercfg /waketimers shows every timer that is armed and when it will fire, and powercfg /devicequery wake_armed lists every device currently allowed to wake the PC./lastwake shows Wake History Count - 0 or names nothing, open Event Viewer > Windows Logs > System, click Filter Current Log, pick the source Power-Troubleshooter, and read the Wake Source line on the newest entry. On a Modern Standby laptop that line often says Unknown - then run powercfg /sleepstudy and check the exit reasons there.Wake timers are alarms Windows and your programs are allowed to set - Windows Update, backup software and maintenance tasks use them to wake a sleeping PC and do their job at night. Switching the timers off stops the wake; the updates and backups still run whenever the PC is awake.
powercfg.cpl and press Enter. Click Change plan settings next to your active plan, then Change advanced power settings./waketimers named a specific program - a backup tool is the classic one, and people have found forgotten fortnightly backup schedules this way - open Task Scheduler (press Win + R, type taskschd.msc, press Enter), find that task, open its Properties > Conditions tab and uncheck "Wake the computer to run this task".If /lastwake or /devicequery wake_armed named a device - usually the mouse, the network adapter or a USB hub - that device has permission to wake the PC, and a small movement, a vibration or a network packet is enough to trigger it.
wake_armed list: powercfg /devicedisablewake "Realtek PCIe GbE Family Controller" (replace the name in quotes with your own device name).Wake on LAN lets a network packet wake the PC - useful in an office, but on a home network a stray packet from the router or another device can wake it at night. If the network adapter was named in Fix 1, this is very likely the cause.
Two Windows features of their own can wake a sleeping PC: Automatic Maintenance, which runs updates and scans on a schedule, and Fast Startup, which changes how shutdown and sleep behave. Both are quick to tame.
powercfg.cpl, press Enter, and click "Choose what the power buttons do" on the left.If nothing in Windows explains the wake, the alarm may live in the BIOS itself - a "Resume by Alarm" or "Wake on RTC" setting that powers the PC on at a set time, or a "Power on after power failure" option that wakes it after a brief power cut.
powercfg /lastwake names the cause, and in most reports it turns out to be a forgotten backup schedule, a mouse, or Wake on LAN. And do not install "sleep fixer" or registry-cleaner tools that promise to stop the waking - they cannot name the trigger, and they only add risk.Every week: Windows problems, hidden tools and full setup guides, explained step by step.
Subscribe on YouTubeA PC never wakes for no reason - something asked it to. The usual triggers are a wake timer set by Windows Update or a backup program, a scheduled task with wake permission, a mouse, keyboard or network adapter allowed to wake the PC, Wake on LAN answering a packet from the network, or Automatic Maintenance. Run powercfg /lastwake in an admin Terminal right after an unwanted wake and it names the exact trigger, so you switch off that one thing instead of guessing.
A zero count only means the last-wake query could not name the trigger - it does not mean nothing woke the PC. Open Event Viewer, go to Windows Logs > System, filter the log by the source Power-Troubleshooter, and read the Wake Source line on the most recent entry. On a Modern Standby laptop the log often says Unknown, so run powercfg /sleepstudy instead and check the exit reasons there.
Yes. Disabling wake timers only stops timers from pulling a sleeping PC awake - Windows Update and your apps still run normally whenever the PC is awake. The one thing to check first is a backup program with a night schedule: if it relies on a wake timer, its backup will wait until the PC is next awake instead of running at night.
Yes, almost always. A wake within seconds of sleeping is usually a device sending a wake signal - most often the mouse, the network adapter, or a USB hub. Run Fix 1 to confirm with powercfg /lastwake, then Fix 3 to take wake permission away from exactly that device. If nothing is named, also run powercfg /requests to see whether an app is holding the PC awake.
No. Battery draining in sleep means the laptop stays semi-awake with the screen off and slowly burns power. This problem is the PC fully waking up - screen on, fans spinning - on its own. The two share the same diagnostic commands, but the symptom and the fix are different. If your laptop both drains battery and wakes by itself, fix the waking first, because every wake burns far more battery than sleep itself.