Generate a battery report using Windows built-in commands

Recently, I feel that the battery consumption of my DELL laptop is getting faster. I want to know the extent of the battery loss. Then I searched for related methods on the Internet and found that I can use the command line tool that comes with Windows to generate a battery report. Simple and fast, no need to install other third-party software.

Here are the steps:

  1. Right-click "Windows PowerShell (Administrator)" on the Windows logo icon in the start menu, and then select "Yes" in the pop-up window to continue running,

insert image description here

  1. Enter the following command in the PowerShell window and press Enter, as shown in the figure:
powercfg /batteryreport /output "C:battery_report.html"

insert image description here

This line of command means to generate a battery report and store it in the C drive, and the report file name is battery_report.html. The specific file name and storage location can be modified by yourself.

After executing the command, wait for a while and there will be a prompt that the save is successful. Then find the newly generated battery report file in the C disk of the computer, that is battery_report.html, double-click to open it, pull down in the browser, and find the following location:

insert image description here

The following key information can be seen;

DESIGN CAPACITY 45,954 mWh
FULL CHARGE CAPACITY 33,540mWh

The red circle above DESIGN CAPACITYis the factory capacity of the battery, FULL CHARGE CAPACITYwhich is the capacity of the battery when the battery is fully charged. Based on these data, the percentage of battery loss can be calculated. For example, the battery capacity of this old computer is only about 73%100% battery has degraded a lot from the data, and it is time to consider replacing the battery.

In addition to the battery capacity information, the battery report file can also view the history of the battery for the last 3 days, battery life estimation and other information. Interested students can study it.

Guess you like

Origin blog.csdn.net/weixin_43846408/article/details/130098580