Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended

Is there a command line utility for battery check? I have hundreds of laptops to check for battery failure. I am able to deploy and install the HP Battery Check utility and then run silently the hbbc.exe /S but I do not see any logs. Is there another utility to do that?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
HP Recommended

So I have finally found the file used to produce the battery result page.

 

Run hpbc.exe /s

 

after couple seconds the result xml file will be in

 

%ProgramData%\Hewlett-Packard\HP Support Framework\Resources\Logs\BCResOut.xml

 

That you can parse and get the information you need - comparing to the GUI result.

 

... and it took just two level 2 support calls to find it. They did not confirm the existence of the /s switch and there is no docummentation.

View solution in original post

4 REPLIES 4
HP Recommended

Hi,

 

Windows includes a powerful command-line tool called PowerCFG that is very useful in troubleshooting Power Plans. Moreover this tool will also allow you to enable and disable devices. In this article, we will learn how to use PowerCGF to find out the health of your laptop battery. Windows 7 has a “hidden” tool that examines your laptop’s power usage and gives you a report and suggestions on how you can improve the battery efficiency.

Check the health of laptop battery

To run the tool, Run cmd as an Administrator.

At the command line, type in the following:

powercfg -energy -output FoldernameFilename.html

For instance I saved mine on the Desktop as Power_Report.html.

powercfg -energy -output c:UsersACKDesktopPower_Report.html

 

For around 60 seconds, Windows 7 will trace, observe & analyze your laptop and generate a report in html format, in the location specified by you.

 

 

powerreport Power Efficiency Diagnostic Report Tool in Windows 7

 

If you simply type powercfg -energy and hit Enter, the report will be saved in your System32 folder.

The Power Efficiency Diagnostic Report could be quite detailed and may overwhelm a normal user. This report will analyze and show that status of your battery’s health and point out warnings, errors and other information relating to your battery.

In this battery’s case you can see that the Design Capacity is 5200 whereas the Last Full Charge shows 4041 – that is almost 22% lower than the original designed charge. If your battery shows a figure of around 50%, you may expect it to just last for a few more months only.

 

And i believe the below link might be useful for you:

 

http://blogs.technet.com/b/heyscriptingguy/archive/2012/11/28/use-powershell-to-detect-power-state-a...

 

 

Regards,

Sumanth Nag M

Sumanth Nag M
HP Recommended

Thanks very much for your reply - I played with the powercfg report which is very nice. However I was looking more specifically for HP tool since failed battery will return a code which needs to be provided for battery replacement.

 

Thanks,

 

Milos

 

HP Recommended

Hi Milos,

 

As of now for HP, HP Battery Check is the only utility which I know, which can provide you a failure ID.

 

Regards,

Sumanth Nag M
HP Recommended

So I have finally found the file used to produce the battery result page.

 

Run hpbc.exe /s

 

after couple seconds the result xml file will be in

 

%ProgramData%\Hewlett-Packard\HP Support Framework\Resources\Logs\BCResOut.xml

 

That you can parse and get the information you need - comparing to the GUI result.

 

... and it took just two level 2 support calls to find it. They did not confirm the existence of the /s switch and there is no docummentation.

Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.