Skip to content

Find out what woke your PC up at night — via Microsoft Learn

Commandlow riskNeeds adminWindows 11Windows 10

If your PC keeps waking from sleep by itself, powercfg can tell you why. /lastwake shows what triggered the most recent wake, and /waketimers lists scheduled tasks that are allowed to wake the PC.

Takes effect right away

The easy way

  1. Run both commands in an elevated Command Prompt.
  2. If a device (often a mouse or network adapter) is to blame, open Device Manager → that device → Properties → Power Management and untick Allow this device to wake the computer.

Command

Run in an administrator Command Prompt / Terminal window.

powercfg /lastwake
powercfg /waketimers
These commands only read information.

Sources

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.

powercfgsleepwakelastwakewaketimers

More in Hidden Tools & Commands

Download a full macOS installer from Terminal — via SS64

Commandlow risk

softwareupdate can list and download complete macOS installers, including older versions Apple still serves. Useful for making a bootable USB installer or installing on another Mac without hunting through the App Store. This entry only downloads; it doesn't install anything.