Skip to content

Get BatteryInfo

github-actions[bot] edited this page Nov 27, 2026 · 1 revision

Get-BatteryInfo

Combines Windows battery WMI classes to calculate health and charge percentages for installed batteries.

Usage

. .\Get-BatteryInfo.ps1
Get-BatteryInfo

Returns

Name, Manufacturer, SerialNumber, DesignCapacityMWh, FullChargeCapacityMWh, RemainingCapacityMWh, HealthPercent, ChargePercent, VoltageMV, Charging, Discharging, ACConnected.

Notes

On a desktop without a reported battery the command returns no results.

Source script · Documentation page

Clone this wiki locally