Free PowerShell Script Checks Windows Laptop Battery Health in Seconds
A developer named NSTechBytes has released BatteryHealth, a free, open-source PowerShell script that checks laptop battery health on Windows 10 and 11. The lightweight tool works by invoking Windows' built-in powercfg command to generate an official battery report, then parses the HTML output to extract key metrics. It displays the battery health percentage, cycle count, and estimated runtime with color-coded results indicating healthy, fair, or degraded status. The script requires no third-party software and runs in approximately 150 lines of commented code under an MIT license. It is available for free on GitHub and is aimed at everyday users, IT administrators, and anyone evaluating a used laptop.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in