Log battery wear and charge behavior on Windows laptops over time. Built for old laptops where powercfg /batteryreport is blank or incomplete.
Periodic logger, not a live monitor or battery repair tool.
- Download a prebuilt binary from Releases, or build
bin/batcap.exewithbuild.ps1. - Set
DesignCapacityinbin/.confto your battery's design capacity in mWh. The default44021is the author's EliteBook value, not a generic default. - Enable
WearPercent=trueandEquivCycles=trueif you want computed health fields. - Run
bin/batcap.exe. It appends a line tologs/batcap.log. - Schedule the exe daily or weekly with Task Scheduler. Clear the AC-power conditions so it runs on battery.
[2026-07-23 15:01:15] Design=44021mWh Full=44494mWh Remaining=39555mWh Voltage=11794mV ChargeRate=0mW DischargeRate=12949mW Charging=False
Fields are optional and configured in bin/.conf. WearPercent and EquivCycles add computed health fields.
- Windows 7 or later with .NET Framework 4.0 or later.
- Battery data exposed through WMI. Some laptops do not expose it.
- Keep
binandlogsas sibling folders.
- Design capacity is manual. A wrong value makes
WearPercentandEquivCycleswrong. EquivCyclesis an estimate, not the firmware cycle count.- Samples on a schedule. It misses short power events between runs.
- Windows only. No alerts, CSV/JSON, retention policy, or multiple batteries.
- No data if the battery no longer reports capacity through WMI.