Report why the PC didn't go to sleep when you walked away — via Microsoft Learn
This report covers the last three days and shows the periods when you weren't using the PC, and whether it actually slept — plus what blocked it if it didn't. Useful on desktops and older laptops where Sleep Study isn't available.
Takes effect right away
Command
Run in an administrator Command Prompt / Terminal window.
powercfg /systemsleepdiagnostics /output "%USERPROFILE%\Desktop\sleep-diagnostics.html"Undo
del "%USERPROFILE%\Desktop\sleep-diagnostics.html"Must be run from an elevated Command Prompt. Pair it with powercfg /requests to catch the blocker live.Sources
- Powercfg command-line options — /systemsleepdiagnostics — by Microsoft Learn
- 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.