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

How To Decode The Windows 10 Product Key

Every Windows 10 operating system that's Installed and activated on the computer, has what's called a Product Key , that Is either pre-Installed by the manufacturer, or added by the end user when formatting their PC. In order to have a fully-functional OS, It must contain a valid Product Key. Whilst there are many tools that can extract It from the operating system, In this tutorial, I will show you how to manually decode the Product Key.

How To Check Faulty Drivers In Windows 10

For hardware devices to function properly, they must have device drivers  Installed, thus allow them to perform at their optimal state. It's all well and good when they're running without error, but they do tend to fail at the best of times, which can cause system Instability and/or loss of functionality. It can be a difficult task pinpointing the problematic driver(s), so In this tutorial, I will show you how to check faulty drivers , without the aid of third-party tools.

How To Create A Fake File Of Any File Size

Depending on your business environment or Individual requirements, sometimes there Is the need to test files of a given capacity. Such tests can Include Identifying how well your hard disks perform under heavy read/write operations, or to establish whether files can be securely deleted beyond recovery. Whatever the reason may be, In this tutorial, I will show you how to create a fake file of any file size.