How to Stop PC Waking Up From Sleep on Its Own
In this article
To stop your PC waking up on its own, the most reliable fix is to disable wake timers and stop specific devices from waking the system. Open Control Panel > Power Options > Change plan settings > Change advanced power settings, expand Sleep, and set Allow wake timers to Disable. Then open Device Manager, right-click each device that can wake the PC (network adapter, mouse, keyboard, USB hubs), choose Properties > Power Management, and clear Allow this device to wake the computer. Also run powercfg /lastwake in Command Prompt to identify the last wake source. These steps stop most unwanted wake-ups, though labels can differ slightly by Windows version, device, or region.
What You'll Need
- A Windows PC (Windows 10 or 11; steps are similar but menu names may vary).
- Administrator access to open Command Prompt and Device Manager.
- No extra software required.
Step-by-Step
- Find what woke the PC last. Right-click Start, choose Terminal (Admin) or Command Prompt (Admin), and run
powercfg /lastwake. The output shows the device or timer that caused the last wake. Note the name; you will target it later. - Disable wake timers. Open Control Panel > Power Options > Change plan settings > Change advanced power settings. Expand Sleep, then Allow wake timers, and set it to Disable for both On battery and Plugged in. Click Apply. This stops scheduled tasks and Windows updates from waking the PC.
- Stop devices from waking the PC. Open Device Manager (right-click Start > Device Manager). Expand Network adapters, right-click your Ethernet or Wi-Fi adapter, and choose Properties. On the Power Management tab, clear Allow this device to wake the computer and click OK. Repeat for Mice and other pointing devices, Keyboards, and Universal Serial Bus controllers (USB hubs). If a device has no Power Management tab, it cannot wake the PC, so skip it.
- Check scheduled tasks. Open Task Scheduler from the Start menu. In the left pane, click Task Scheduler Library. In the middle pane, look for tasks with the Wake the computer to run this task condition. To check, right-click a task > Properties > Conditions tab, and clear that checkbox if set. Do this only for tasks you recognise; do not disable system tasks you do not understand.
- Turn off "wake on LAN" if not needed. In Device Manager, open your network adapter's Properties > Advanced tab. Look for Wake on Magic Packet or Wake on pattern match and set them to Disabled. This prevents network traffic from waking the PC.
- Disable fast startup (optional). Fast startup can cause odd wake behaviour. Go to Control Panel > Power Options > Choose what the power buttons do > Change settings that are currently unavailable, then clear Turn on fast startup (recommended) and save. This is safe but may slightly increase boot time.
- Test. Put the PC to sleep and leave it. If it stays asleep, you are done. If not, run
powercfg /lastwakeagain to see the new wake source and repeat the relevant step.
Common Mistakes
- Only disabling wake timers. Many wake-ups come from devices (mouse, keyboard, network), so you must also clear the Power Management checkboxes.
- Disabling the wrong device. Clearing "Allow this device to wake" on your keyboard means you cannot wake the PC with a keypress; that is fine if you use the power button, but know the trade-off.
- Ignoring
powercfg /lastwake. Without it, you may disable many devices unnecessarily. Always check the last wake source first. - Forgetting scheduled tasks. Windows Update and backup software often set wake timers; disabling the timer in Power Options usually covers them, but checking Task Scheduler catches leftovers.
- Changing settings on the wrong power plan. If you use a custom plan, repeat the advanced power settings for that plan.
Tips
- Run
powercfg /waketimersto list active wake timers and their owners. This is faster than hunting through Task Scheduler. - If you use a laptop, set "Allow wake timers" to Disable on battery first; that alone stops many overnight wake-ups.
- Keep a note of which devices you changed so you can revert if you later want wake-on-LAN or wake-by-keyboard.
- After a Windows feature update, recheck the Power Management tabs; updates can reset device wake settings.
- If the PC wakes immediately after sleeping, a USB device is the usual culprit. Unplug USB devices one at a time to identify it.
Troubleshooting
If the PC still wakes on its own, work through these checks in order:
- Run
powercfg /lastwakeagain. If it names a device, go back to Device Manager and confirm the Power Management checkbox is cleared for that exact device. - Check for a wake timer that reappeared. Run
powercfg /waketimers. If a timer is listed, open Task Scheduler and clear the wake condition on that task, or disable the task if it is not needed. - Update drivers. Outdated network or chipset drivers can cause spurious wakes. Use Windows Update or the PC manufacturer's official support site; avoid third-party driver updaters.
- Disconnect peripherals. Unplug USB mice, keyboards, hubs, and printers, then test sleep. If the PC stays asleep, reconnect one at a time to find the culprit.
- Check for malware. Rarely, malware schedules wakes. Run a full scan with Microsoft Defender or your security software.
- Reset power plans. If settings will not stick, open Control Panel > Power Options and click Restore default settings for this plan. This resets custom changes but does not delete files.
- Last resort: clean boot. Open System Configuration (msconfig), go to the Services tab, check Hide all Microsoft services, and click Disable all. Restart and test. If the PC stays asleep, re-enable services in groups to find the cause. Remember to re-enable them afterwards.
Frequently Asked Questions
Why does my PC wake up by itself?
Common causes are wake timers (Windows Update, scheduled tasks), devices set to wake the PC (network adapter, mouse, keyboard, USB hub), and wake-on-LAN network traffic. Use powercfg /lastwake to identify the exact source.
Does disabling wake timers stop Windows Update from waking my PC?
Yes, in most cases. Windows Update uses wake timers to run maintenance; disabling them prevents that wake. Updates still install when you next turn on the PC.
Will these changes stop me from waking the PC with my keyboard or mouse?
If you clear "Allow this device to wake the computer" for your keyboard and mouse, they will no longer wake the PC. You can still wake it with the power button. Re-enable the checkbox if you want keyboard wake.
Can a USB hub wake my PC?
Yes. USB hubs and the devices connected to them can be configured to wake the PC. In Device Manager, open each USB hub's Properties > Power Management and clear the wake checkbox.
Is it safe to disable fast startup?
Yes. Fast startup is a hybrid shutdown feature; disabling it is safe and can fix some wake and shutdown issues. The only downside is a slightly longer boot time.
What if the PC wakes immediately after I put it to sleep?
A USB device or network adapter is the usual cause. Unplug USB devices one by one and test. Also check the network adapter's Power Management tab and disable wake-on-LAN in its Advanced settings.