Last Updated on February 25, 2024 by Mathew Diekhake

The System Sleep Diagnostics feature that comes with Windows 10 will generate a report that details when the user’s computer was idle over the last three days (or the number you’ve chosen in its settings) and how many times the computer went to sleep.

This is what you need to create a System Sleep Diagnostics report when you’re using any versions of the Windows 10 operating system. This feature has not yet changed since it first came out.

Note: You’ll need to be signed into the computer with an account that has the administrative permissions assigned to it before you can create a System Sleep Diagnostics report using the Command Prompt.

How to Create System Sleep Diagnostics Report in Windows 10

You can create a System Sleep Diagnostics report by using the elevated version of the Command Prompt in Windows 10.

1. Start off by typing “CMD” into the Cortana search and then right-click on the “Command prompt” desktop application under the Best match section and then choose to “Run as administrator” from the menu.

2. You’ll now have the elevated Command prompt window open on the computer’s display.

3. You can choose from any of the following four commands to enter into the command line, based on what you would like to achieve.

  • For .html file with default 3 day duration: powercfg /SystemSleepDiagnostics /output %USERPROFILE%\Desktop\System-Sleep-Diagnostics.html
  • For .html file with specified duration: powercfg /SystemSleepDiagnostics /output %USERPROFILE%\Desktop\System-Sleep-Diagnostics.html /Duration (days)
  • For .xml file with default 3 day duration: powercfg /SystemSleepDiagnostics /output %USERPROFILE%\Desktop\System-Sleep-Diagnostics.xml /XML
  • For .xml file with specified duration: powercfg /SystemSleepDiagnostics /output %USERPROFILE%\Desktop\System-Sleep-Diagnostics.xml /XML /Duration (days)

4. When choosing the commands that go for a specific time period, you need to change the “(days)” at the end for the actual number of days that you would like to use. You can choose any number between 1 and 14.

5. Once you execute the command by hitting the “Enter” key on your keyboard, you’ll then get a message letting you know that the report that you chose has been saved to the desktop.

6. Minimize the browser window and then look for a new icon on the desktop that probably looks like whatever your default web browser is. Double-click to open the file and then you’ll see the results for the System Sleep Diagnostics report.

Keep scrolling down the page for more results. . . .

Once you’ve viewed the results, you can save the file to any location of your choice, thanks to it being an HTML or XML file. The results are handy for anyone who wants to check up on the times that users were meant to be away from their machines and make sure that the computers are sleeping as they are supposed to.

You might also be interested in:

You can subscribe to our RSS, follow us on Twitter or like our Facebook page to keep on consuming more tech.