Skip to main content

Create A PC Sleep Diagnostics Report

We all differ In the way we utilize our computer, Inclusive of the number of tasks performed, the duration of when the PC was not In use (Idle Mode) and when It actually went to sleep. Knowing such Information, can be of benefit to It's rightful owner, but how do you obtain It and from where? Well, In this tutorial, I will be demonstrating how to create a PC Sleep Diagnostics Report natively within the Windows 10 environment.

Put simply, you will learn how to create a report of when your PC was on Idle (not In use), the Idle duration and If and when It went to sleep. A snippet Is as per the above Image. So what's the purpose of this? You decide! Personally, If I had multiple users who had physical access to my system and I was not present at the time, I'd want to know the exact time, date and duration of when It was utilized. But that's just me, you may have other Intentions.

To achieve this, I will be using a simple command via the Command Prompt Itself, whereby It will generate the PC Sleep Diagnostics Report to a .html file which you can then view In your favorite web browser. So without further delay, let's get this tutorial happening.

Step One:
The first thing you need to do, Is access the Command Prompt. Open the Search bar, enter cmd and at the top, right-click Command Prompt and hit Run as administrator.

Step Two:
To create the PC Diagnostics Report, enter the following command:

powercfg /SystemSleepDiagnostics /output %USERPROFILE%\Desktop\System-Sleep-Diagnostics.html /Duration number of days

Replace the number of days, with the amount of days you want to view In the report. In my case, I've entered 7, so the report will display the last 7 days of activity.

Step Three:
A message will now be displayed, confirming that the report has been saved to the User Profile directory, In the form of a .html file.

Step Four:
Navigate to the above User Profile directory (obviously yours will differ), and you'll see the output file named System-Sleep-Diagnostics.html. Double-click It, and open It with your favorite web browser.

Step Five:
And here's the System Sleep Diagnostics report, that executed In my Google Chrome browser. As you can see, It contains the Time User Went Idle, Idle Duration and Sleep State Entered columns. The exact timestamp Is listed for each duration. My PC Is always running 24/7, hence only Working Is displayed under Sleep State Entered. If It did go Into sleep mode, the report would've documented Sleep.

Last Step:
Double-click on any entry that you see, and a detailed graph will be displayed for that particular session.

Final Thoughts:
I love the fact that the Sleep Diagnostics report, displays the exact timestamp of every session pertaining to your computer's activity/Inactivity. As mentioned, If your PC sleeps at any given point, the report will display exactly when- to the actual second!

There are a couple more options to choose from within the report, namely Power Requests and System Idle Events, so be sure to check these out In detail.


Popular posts from this blog

Check The Health Of Your Laptop's Battery

When you first purchase your laptop and fully charge the battery thereafter, It runs at It's optimal state for quite a while. However, over time, It Inevitably decreases In performance, and does not hold It's charge capacity as per It's brand new state. This Is due to wear & tear, and a few other factors. It's very Important to know the condition of your battery, so In this tutorial, I will show you how to view the current status and health of your laptop's battery.

How To Create A Virtual Machine Using VMware

A virtual machine, often abbreviated as a VM, Is a software program containing an operating system that's Installed on the physical machine (PC), and operates In It's own Isolated environment. Every task performed In the VM, remains there, without affecting the main computer. Every user should have a virtual machine up and running, so In this tutorial, I will demonstrate a detailed guide on how to create & Install a virtual machine on your computer, namely VMware Workstation.

How To Troubleshoot Your PC's Power Settings

Upon purchasing your computer with the Windows OS Installed, by default, It's power plan setting Is set to Balanced. Depending on the manufacturer, the hibernate and sleep modes are also configured to turn off at certain Intervals. You can also create a plan of your own, based on your computing usability. Power plan settings can corrupt at the best of times, hence In this tutorial, I will show you how to troubleshoot your PC's power settings natively within Windows.