-
1
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
1
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Archived Topics
- Notebooks Archive
- Battery Check via Command line

Create an account on the HP Community to personalize your profile and ask a question

05-20-2013 02:24 PM
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.
Solved! Go to Solution.
Accepted Solutions
05-22-2013 04:08 PM - edited 05-23-2013 11:12 AM
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.
05-20-2013 02:35 PM
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.
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:
Regards,
Sumanth Nag M
05-20-2013 04:19 PM
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
05-22-2013 04:08 PM - edited 05-23-2013 11:12 AM
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.
