With the Windows 10 Anniversary Update, Powercfg.exe supports a new command-line switch that generates a diagnostic report of system sleep transitions.
Generate System Sleep Diagnostics Report
Open a Admin Command Prompt window, and type:
Command-line arguments supported
POWERCFG /SYSTEMSLEEPDIAGNOSTICS [/OUTPUT ] [/XML] Description: Generates a report of intervals when the user was not present over the last three days on the system, and if the system went to sleep. The command will generate an HTML report file in the current path. Parameter List: /OUTPUT Specify the path and filename to store the system sleep diagnostics report HTML or XML file. /XML Format the report file as XML. /DURATION Specify the number of days to analyze for the report. /TRANSFORMXML Reformat an XML report file as HTML. Examples: POWERCFG /SYSTEMSLEEPDIAGNOSTICS POWERCFG /SYSTEMSLEEPDIAGNOSTICS /OUTPUT "system-sleep-diagnostics.html" POWERCFG /SYSTEMSLEEPDIAGNOSTICS /OUTPUT "system-sleep-diagnostics.xml" /XML POWERCFG /SYSTEMSLEEPDIAGNOSTICS /TRANSFORMXML "system-sleep-diagnostics.xml"
Here is a sample Sleep Diagnostics Report (html).
One small request: If you liked this post, please share this?One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.