You put your Windows 11 computer to sleep at the end of the day, but at 3:00 AM, the fans spin up and the monitor turns on for absolutely no reason. Random wake events are a common frustration for Windows users, often caused by sensitive mice, background network activity, or scheduled system updates. Fortunately, you can use the Command Prompt to find out exactly what is waking your PC and stop it.
Step 1: Find the Culprit
First, we need to ask Windows exactly what triggered the last wake event.
- Click the Start Button, type
cmd, right-click on Command Prompt, and select Run as administrator. - Type the following exact command and press Enter:
powercfg -lastwake - The terminal will output a short log. Look for the line that says “Type:” or “Instance Path:”. This will usually reveal a specific device, such as a “USB Root Hub” (which means your mouse or keyboard woke the PC) or an “Intel Gigabit Network Connection” (which means a network packet woke it).
Step 2: Stop Hardware from Waking the PC
If your mouse or network adapter is the culprit, you can revoke its permission to wake the computer via the Device Manager.
- Right-click the Start Button and select Device Manager.
- If the culprit was your mouse, expand the Mice and other pointing devices section. (If it was your network adapter, expand Network adapters).
- Right-click on your specific mouse or network adapter and select Properties.
- Click on the Power Management tab at the top of the window.
- Uncheck the box that says Allow this device to wake the computer.
- Click OK.
Step 3: Disable Wake Timers
If the powercfg command revealed that a scheduled task (like a Windows Update) woke the PC, you need to disable Wake Timers.
- Press the Windows Key, type
Edit power plan, and press Enter. - Click the blue link that says Change advanced power settings.
- In the small window that appears, click the + icon next to Sleep to expand it.
- Click the + icon next to Allow wake timers.
- Change the settings for both “On battery” and “Plugged in” to Disable.
- Click Apply and then OK. Your PC will now sleep peacefully until you manually press the power button.