Sleep mode is supposed to give your Windows PC a break—save power, reduce noise, and let you get right back into your work. But sometimes your system wakes up randomly on its own, even when you didn’t press a key or touch the mouse. It might wake up a few minutes after entering sleep, or it might power on in the middle of the night like it has a mind of its own.
In most cases, a specific device, scheduled task, or system event triggers the wake-up. Windows logs these events, which helps you track down the exact cause. In this guide, we walk through every fix that stops your PC from waking up unexpectedly and helps it stay asleep when you put it to sleep.
1. Find Out What Woke Your PC Last Time
Before applying random fixes, you should first identify what’s waking your PC. Windows logs this information, and checking it tells you exactly where the problem begins.
Check Using Command Prompt
- Press Windows + R, type cmd, and hit Enter.
- In the Command Prompt window, type the following command:
powercfg /lastwake - Press Enter.
Windows will show you the exact device or component responsible for the last wake event.
For example:
- HID-compliant mouse → Mouse movement is waking the PC.
- Intel(R) USB 3.0 Host Controller → USB devices are causing the wake.
- Realtek PCIe Network Controller → Network activity (Wake-on-LAN).
- Wake Timer → Scheduled tasks or Windows Update woke the PC.
This step alone points you in the right direction.
2. Stop Mouse and Keyboard From Accidentally Waking the PC
Your mouse is often the most sensitive trigger. Even slight desk vibration can wake your PC.
Disable Wake from Mouse
- Right-click Start and open Device Manager.
- Expand Mice and other pointing devices.
- Double-click your mouse entry.
- Go to the Power Management tab.
- Uncheck Allow this device to wake the computer.
- Click OK.
Disable Wake from Keyboard
- In Device Manager, expand Keyboards.
- Double-click your keyboard device.
- Go to Power Management.
- Uncheck Allow this device to wake the computer.
After this, only your power button will wake up the PC unless you re-enable these devices again.
3. Disable Wake Timers (Major Reason PCs Wake Automatically)
Wake timers are scheduled events that tell Windows, “Wake up at this time to run a task.” These are widely used by Windows Update, scheduled scans, and maintenance tasks.
How to Disable Wake Timers
- Open Settings with Windows + I.
- Go to System → Power & Battery.
- Scroll down and open Additional Power Settings.
- Next to your current power plan, click Change plan settings.
- Click Change advanced power settings.
- Expand the Sleep category.
- Set Allow wake timers to Disable for both Battery and Plugged in.
This prevents Windows from waking up for updates or background tasks.
4. Turn Off Wake-on-LAN on Network Adapters
Your network card can wake your PC when it receives any “magic packet” from the network. This is a common issue on desktops connected with Ethernet, especially if you’re on fast networks.
Disable Wake-on-LAN
- Right-click Start → Device Manager.
- Expand Network adapters.
- Double-click your Ethernet or Wi-Fi adapter.
- Go to the Power Management tab.
- Uncheck Allow this device to wake the computer.
- Switch to the Advanced tab.
- Find and disable values like:
- Wake on Magic Packet
- Wake on Pattern Match
- Wake-on-LAN
After this, network traffic can no longer wake your PC.
5. Disable Scheduled Tasks That Wake the PC
Windows uses the Task Scheduler to run updates, scans, media tasks, and maintenance routines. Many of these have permission to wake your PC.
How to Check and Disable Wake Tasks
- Press Start, type Task Scheduler, and open it.
- Navigate to:
Task Scheduler Library → Microsoft → Windows → UpdateOrchestrator - Double-click tasks like:
- Reboot
- Schedule Scan
- UpdateAssistantWakeupRun
- Go to the Conditions tab.
- Uncheck Wake the computer to run this task.
Repeat this process for:
- WindowsUpdate
- Maintenance
- TaskScheduler
- Media Center (if present)
This stops scheduled tasks from interrupting your PC’s sleep.
6. Disable Automatic Maintenance Wake-Up
Windows Maintenance automatically performs disk optimization, updates, and security scans at night. By default, it can wake your PC around 2 AM.
Turn Off Automatic Maintenance Wake
- Open Control Panel.
- Go to System and Security → Security and Maintenance.
- Expand the Maintenance section.
- Click Change maintenance settings.
- Uncheck:
Allow scheduled maintenance to wake up my computer at the scheduled time.
Now your PC will no longer wake to perform nightly maintenance.
7. Turn Off Fast Startup (Helps With Sleep/Wake Issues)
Fast Startup is a hybrid shutdown feature. While it speeds up boot times, it sometimes causes issues where the PC wakes unexpectedly or doesn’t sleep correctly.
Disable Fast Startup
- Open Control Panel → Power Options.
- Click Choose what the power buttons do.
- Click Change settings that are currently unavailable.
- Uncheck Turn on fast startup (recommended).
- Click Save changes.
Restart your PC to apply this.
8. Use PowerCFG to Identify and Disable Wake Sources
Windows includes a powerful command-line power tool—powercfg—which can list every device capable of waking your PC.
See All Wake-Capable Devices
Open Command Prompt (Admin) and type:
powercfg -devicequery wake_armed
This shows every device currently allowed to wake the PC.
Disable Wake for a Specific Device
Use this command:
powercfg /devicedisablewake "Device Name"
For example:
powercfg /devicedisablewake "Intel(R) USB 3.0 eXtensible Host Controller"
Disable All Wake Events at Once
You can also disable hibernation (which controls some wake events):
powercfg -h off
This is a strong fix—only use it if nothing else works.
9. Update BIOS, Chipset, and Drivers
Sleep and wake behaviors depend heavily on your motherboard firmware and power management drivers. If they are outdated, your PC may wake randomly or fail to stay in sleep mode.
Update Everything Important
- Visit your PC or motherboard manufacturer’s support website.
- Look for updates for:
- BIOS/UEFI firmware
- Chipset drivers
- Intel Management Engine Interface (IMEI)
- Power Management drivers
- Install the updates and restart your PC.
BIOS updates often specifically fix sleep/wake issues.
10. Scan for Malware That Creates Wake Events
Some malware runs hidden tasks or generates network activity that wakes your PC repeatedly.
Run a Deep Scan
- Open Windows Security.
- Go to Virus & threat protection.
- Click Scan options.
- Select Full scan and run it.
- After that, run Microsoft Defender Offline scan for deeper detection.
If malware is triggering wake events, this will take care of it.
Wrapping Up
Random wake-ups on Windows can be annoying, especially when you expect your PC to stay quiet and conserve power. The good news is that Windows provides all the tools you need to track down the cause—whether it’s a mouse movement, wake timer, network adapter, or scheduled task. After following the steps in this guide, your computer should stay asleep until you decide to wake it.