Windows battery report: check your laptop battery health from the command line
Generate a Windows battery report with powercfg, check live charge status, and trace what is draining power — all from the terminal.
What this covers
Windows can tell you exactly how worn your laptop battery is and what is eating your charge — no third-party tools needed. This guide walks you through generating the battery report, reading live battery status, and optionally diagnosing the causes of fast drain.
Generate the battery report
This is the core of the scenario: an HTML report comparing design capacity vs. full-charge capacity, plus a history of recent drains. Run it from any prompt, then open battery-report.html on your Desktop. If DESIGN CAPACITY and FULL CHARGE CAPACITY are close, your battery is healthy.
Create an HTML report showing design vs. full-charge capacity and recent battery drain.
$ powercfg /batteryreport /output "%USERPROFILE%\Desktop\battery-report.html"Check the current charge and status
The report shows history; this shows the live state — current percentage, whether it is charging, and the estimated runtime. Use it to sanity-check the report: the percentage should match what Windows shows in the tray. If it works, you get three numbers back instead of an error.
Read the current battery percentage, charging status and estimated remaining runtime in PowerShell with Win32_Battery.
$ Get-CimInstance Win32_Battery | Select-Object EstimatedChargeRemaining, BatteryStatus, EstimatedRunTimeTrace what is draining power
If the battery report shows fast drain, this 60-second diagnosis lists devices, timeouts and settings that waste power or block sleep. It takes a minute to run and writes an HTML report; check the Errors and Warnings sections for concrete culprits. Optional if you only wanted capacity info.
60-second trace that reports devices, timeouts and settings preventing sleep or wasting power.
$ powercfg /energyCheck which sleep states are available
Battery life depends heavily on sleep and hibernate working. This one-liner shows which standby states your machine supports and which are disabled — and why. If hibernate is listed as unavailable, that explains short effective battery life on a closed lid.
Show which standby and hibernate states the machine supports, and which are disabled and why.
$ powercfg /aHow to confirm it worked
battery-report.html opens on your Desktop and shows both a design capacity and a full-charge capacity figure; the live charge query returns values matching the tray icon.
Sources
- powercfg command-line optionsEvidence: Documents powercfg /batteryreport, which generates an HTML report of battery capacity history and life estimates, and its /output path option.
- Get-CimInstance cmdlet | Microsoft LearnEvidence: Get-CimInstance queries WMI classes such as Win32_Battery by -ClassName.
- Win32_Battery class | Microsoft LearnEvidence: Win32_Battery exposes EstimatedChargeRemaining (percent), BatteryStatus and EstimatedRunTime (seconds).
Last verified: 2026-09-21
Related guides
A step-by-step CLI guide to finding out why Windows starts slowly — boot config, event log errors, startup bloat — and the fixes that actually help.
Find out why your Windows PC keeps dropping Wi-Fi using netsh diagnostics, then clean up the saved profile and reconnect.
Windows hangs on shutdown or never powers off? Diagnose it from the event log, cancel stuck shutdown timers, disable Fast Startup and verify a clean shutdown from the command line.