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.



Comments

Popular posts from this blog

How To Use Sandboxie In Windows 10

When navigating online and downloading & executing applications, clicking on links, visiting websites that you're not familiar with and so forth, your computer Is vulnerable to being Infected with a virus. The last thing you need, Is to have your sensitive files compromised or hit with a nasty piece of malware. To prevent this, In this tutorial, I will show you how to safely perform all the above and more, by using a software named Sandboxie.

Create A Bootable USB Flash Drive

If you have a Bootable ISO Image file of the Windows operating system, obviously the Intention Is to burn It to disc and boot from your PC thereafter. However, optical drives are slowly being phased out In manufacturing & shipping of new computers, so what do you do from here? The alternative Is to create a bootable USB flash drive, and I will show you exactly how It's done. The process Is quite simple, yet a lot of users fail to grasp the concept.


Open The Command Prompt In Any Directory

A very powerful tool native to the Windows platform, Is the Command Prompt that allows users to perform an array of tasks, such as renaming and deleting files & folders, formatting disks and the list goes on. Sometimes, you need to navigate to certain directories by executing commands, which can be a lengthy and somewhat frustrating process. As such, In this tutorial, I will show you how to easily open the Command Prompt In any directory/folder of your choice.