You can generate a comprehensive battery usage graph and report on Windows 10 PC/laptop using CMD or Powershell; here is how to do it
If you own a Windows 10 PC or laptop there is a good chance you didn’t know about battery usage graphs that your PC/laptops can generate. The batter usage graph can not only show you how your PC/laptop is working but also point out the power fluctuations that occur on your computer. The battery usage graph is particularly useful for laptop owners because it can show them the gradual degradation of the battery and help them get a replacement before calamity strikes.
If you are a programmer, it can also reveal whether malware or virus are running on your computer or laptop. In fact, the battery usage graph can also help your uncover if any cryptojacking malware like Monero cryptocurrency miner is operating on your PC/laptop or your PC/laptop is has been turned into a zombie botnet. If your Battery Usage Graph shows use during the time you were not handling the PC/laptop or sleeping, it is safe to deduce that there is some malware or miner on your PC/laptop or it is being used as a botnet. These things usually suck up more power and can help you reach a conclusion whether your Windows 10 PC or laptop is secure.
If you use a Windows 10 laptop, you may probably know that your cursor over the hovering the battery icon at the bottom right of your screen displays the time left until the battery will last and how much juice is left at that point. It will display a message which says something like this: 10 hr 05 min (85%) remaining.
If you double-tap on the battery icon it will bring up a slider on your bottom right which looks something like this:
From here you can access your battery settings but they just give you battery optimization options. What you really want is a comprehensive battery usage graph and a report. Here is how to use CMD or Powershell to generate an HTML report of your battery usage on Windows 10 PC/laptop.
First of all head over to the search and type in CMD and select run as Administrator. You can also press Windows Key + X to bring up the Powershell options and choose run Powershell as Administrator.
Once you are presented with the C://> or Powershell option, type or copy-paste the following command:
Once you type in the command, after a few secs, your CMD or Powershell will say that a report has been saved as sleepstudy-report.html
You can now view the report by going to your Windows directory > System32> sleepstudy-report.html. Click on the report and select if you want it opened in Chrome/Firefox or Edge and view your comprehensive battery usage analysis and details almost everything that involves your power or battery including battery drains.