πŸ“ž (714) 888-5959 Book Now
Home β€Ί Tech News β€Ί Repair Tips & Diagnostics
MediaVision Analysis

PC Wakes Up by Itself at Night? Find the Cause With powercfg in Windows 11 and 10

✍️ Mediavision team | Engineer Kyrollos Farah πŸ“… November 23, 2026 πŸ”„ Updated November 25, 2026 ⏱️ 4 min read 🏷️ Repair Tips & Diagnostics
Photo-style illustration of a desktop PC and monitor glowing in a dark room at 3 AM, with a floating alarm-clock and power icon above the PC. AI-generated illustration, no brand logos.
Original image Β© 2026 MediaVision.us
If your PC wakes up by itself from sleep, Windows can tell you why. Use the free built-in powercfg commands to see what woke it, which devices and timers are allowed to wake it, and how to stop the one causing the problem.

You put your PC to sleep, go to bed, and in the middle of the night the screen lights up and the fans spin. It's not haunted. Something told Windows to wake up: a mouse, a network adapter, a scheduled task, or an update. Windows has a free built-in tool called powercfg that tells you exactly what did it, so you can fix the cause instead of guessing.

Step 1: Ask Windows What Woke the PC

Do this right after the next surprise wake-up, before you put the PC back to sleep.

  1. Click Start, type cmd, right-click Command Prompt and choose Run as administrator.
  2. Type powercfg /lastwake and press Enter.

Microsoft describes this command as reporting "what woke the system from the last sleep transition." Look at the lines under Wake Source. You will usually see a device name (like a mouse, keyboard or network adapter) or a timer.

Step 2: See Which Devices Are Allowed to Wake It

Type powercfg /devicequery wake_armed and press Enter. This lists every device that is currently set to wake the computer from sleep. On many desktops you'll see the mouse, the keyboard and the network card. A sensitive mouse that gets bumped, or a network adapter that answers network traffic, is a very common cause of night-time wake-ups.

Step 3: Turn Off Wake for the Device Causing It

If one device keeps waking the PC, you can stop just that one. Copy its exact name from the list above and run:

powercfg /devicedisablewake "Exact Device Name"

Microsoft's documentation shows the same command in reverse, powercfg /deviceenableawake "Exact Device Name", so you can undo it anytime. Tip: keep the keyboard able to wake the PC so you can still wake it on purpose, and turn off the mouse or network adapter instead.

Prefer clicking? Open Device Manager, double-click the device, open the Power Management tab and uncheck Allow this device to wake the computer.

Step 4: Check Wake Timers

If the wake source says a timer, run powercfg /waketimers. Microsoft explains that when a wake timer expires it "wakes the system from sleep and hibernate states." The output shows which program or scheduled task set the timer. Common ones are Windows Update maintenance, backup software and other scheduled tasks.

To stop wake timers from waking the PC:

  1. Open Control Panel > Power Options > Change plan settings > Change advanced power settings.
  2. Expand Sleep > Allow wake timers and set it to Disable (or Important Wake Timers Only, if your PC shows that option).

Keep in mind: if you block wake timers, updates and backups that were scheduled for the night will run when you next use the PC instead.

Bonus: PC Won't Go to Sleep at All?

The opposite problem has its own command. Run powercfg /requests. Microsoft says it lists the app and driver "Power Requests" that "prevent the computer from automatically powering off the display or entering a low-power sleep mode." A stuck browser tab playing media, a game launcher or a sound driver often shows up here.

Quick Checklist

When to Bring It In

If the PC wakes up, restarts or shuts down by itself even after these steps, or turns on when it was fully off, the cause may be a BIOS setting, a failing power supply, a power button problem or a driver issue. Those are worth a proper diagnostic.

How MediaVision Can Help

MediaVision Computer Repair
800 S Brookhurst St, Suite 1B3, Anaheim, CA 92804
Phone: (714) 888-5959
Book Now

Frequently Asked Questions

Is it safe to run powercfg?

Yes. /lastwake, /waketimers, /devicequery and /requests only show information. Only /devicedisablewake changes a setting, and you can undo it with /deviceenableawake.

Does this work on Windows 10?

Yes. These powercfg commands work on Windows 10 and Windows 11.

lastwake says "Unknown." Now what?

Check wake timers and the devices list anyway. If nothing shows up, the cause may be in the BIOS (for example a scheduled power-on or wake-on-LAN setting) or a hardware fault, and that's a good time to call us.

πŸ“Ž Sources & Evidence

#powercfg#sleep mode#windows 11#windows 10#wake timers#repair tips

πŸ“’ Share this article

Send it to a client, a colleague, or your group chat.

πŸ‘¨β€πŸ’»
Mediavision team | Engineer Kyrollos Farah
MediaVision Computer Repair & IT Services β€” Anaheim, CA. Analysis based on hands-on repair experience with the hardware and software we service every day.

Need professional help with this?

Diagnostics, repairs and IT support from a real workshop in Anaheim.

πŸ“ž Book a Repair β€” (714) 888-5959
Link copied βœ“