When a Windows PC comes out of sleep on its own overnight, it’s because something has been allowed to wake it. The culprit is nearly always one of three things: a scheduled task or wake timer, a wake signal from the network, or a USB or Bluetooth device. To find out which one it is, open an elevated Command Prompt and run powercfg /lastwake. Then take that permission away.
Why your PC wakes up on its own
Windows rarely leaves sleep mode without a clear reason. Something on the machine has been given explicit permission to interrupt sleep. Often an app gave itself that right when it was installed. Otherwise it’s a default setting that nobody ever checked.
Windows logs every wake event, so you can look up the cause instead of guessing. These are the three usual suspects:
- Scheduled tasks and wake timers. These include Windows Update, backup tools, antivirus definition updates and manufacturer bloatware
- Wake signals sent over the network, called Wake-on-LAN or “wake on magic packet”
- USB or Bluetooth peripherals, such as wireless mouse and keyboard receivers, docking stations, external hard drives and some USB hubs
Find out what woke your PC
Do this step first. It shows which of the three causes you’re dealing with, so you can skip straight to the right fix.
- Run Command Prompt as an administrator. This is called an “elevated” prompt.
- Enter
powercfg /lastwakeand press Enter. - Look at the result. It shows what caused the most recent wake: a scheduled task, a wake timer or a piece of hardware.
- Enter
powercfg /waketimersand press Enter. This lists every timer that is currently armed and waiting to go off.
The second command is useful when your PC wakes hours after you stopped using it. It shows you the waiting timers before they fire.
Turn off wake permission for a scheduled task
Windows Update often needs the PC awake during its maintenance windows so it can check for patches and install them. Task Scheduler also has an option called Wake the computer to run this task. Third-party installers often switch it on without asking you.
If powercfg /lastwake or powercfg /waketimers points to a task, follow these steps:
- Launch Task Scheduler.
- Find the task that the command named.
- Open the task and click its Conditions tab.
- Clear the Wake the computer to run this task checkbox.
- Save your change.
In most cases, that task won’t wake your PC again.
Turn off Wake-on-LAN for your network adapter
Many network adapters come with Wake-on-LAN already turned on. It lets another device on your network wake the PC by sending it a signal. That device could be a router, a NAS (a network storage box) or a phone running a remote-access app.
This is handy if you need to reach a computer remotely without leaving it fully powered on. If you don’t need that, ordinary network traffic or a badly configured device can trigger it by accident. You’re probably better off turning it off.
- Launch Device Manager.
- Expand Network Adapters.
- Open the Properties window for your network adapter.
- On the Power Management tab, turn off the option that lets the device wake the computer.
- On the Advanced tab, look for a Wake on Magic Packet setting. You can turn this off separately.
- Click OK to save.
Check your router or mesh system app as well. Some check on connected devices regularly for status updates, and a few consumer routers have sent wake packets during those checks.
Be careful with this step if you use file-sync software, media servers or remote-desktop tools. These apps are the most likely to have asked for wake permission during setup, and turning it off may change how they work.
Stop USB and Bluetooth devices from waking your PC
Wireless mouse and keyboard receivers cause this most often. Slight electrical interference or a small knock against your desk can count as input and wake the PC. Docking stations, external hard drives and some USB hubs can have the same permission, depending on how their drivers were installed.
List every device that can wake your PC
- Run Command Prompt as an administrator.
- Enter
powercfg /devicequery wake_armedand press Enter. - Write down every device that appears. These are all the devices that can currently wake your computer.
This is much quicker than checking each device one at a time.
Remove wake permission from a device
- Launch Device Manager.
- Find the device from your list. It’s usually under the USB or Human Interface Devices sections.
- Open the device’s properties and click the Power Management tab.
- Turn off the option that lets the device wake the computer.
- Do the same for every peripheral that doesn’t need to wake your PC.
Start with wireless mouse receivers, especially any that sit close to other electronics. This fixes most cases, and the device works the same as before when you use it during the day.
Frequently asked questions
What command shows what woke up my Windows PC?
Open an elevated Command Prompt and run powercfg /lastwake. It tells you whether the last wake came from a scheduled task, a wake timer or a hardware device.
How do I see which devices are allowed to wake my PC?
Open an elevated Command Prompt and run powercfg /devicequery wake_armed. It lists every device that can currently wake the computer.
Will my mouse still work if I stop it waking the PC?
Yes. Removing wake permission from a peripheral like a wireless mouse receiver doesn’t change how the device works during the day.
Should I turn off Wake-on-LAN?
If you never need to wake the PC remotely, you’re probably better off with it turned off. Leave it on if you rely on remote access, media servers or remote-desktop tools that use it.

![Windows Storage Full? Here's How to Track Down What's Actually Using It [2026] 27 windows storage full heres how to track down whats actually using it 2026 Your PC already has a record of where the disk space went. The problem is that Windows hides the answer three menus deep, and several of the categories it does surface tell you nothing.](https://egamers.io/wp-content/uploads/2026/09/windows-storage-full-heres-how-to-track-down-whats-actually-using-it-2026-280x210.jpg)














STAY ALWAYS UP TO DATE