Windows XP/Vista/7 Check Battery Charge from CMD?

How can I get the battery status in windows? On Linux it is as simple as acpi -b but in Windows this simple task seems impossible.

powercfg -energy can get all kinds of all information, but won't output something as simple as the charge level. I just need something simple which I can use for some scripts.


You can use WMIC, e.g. WMIC Path Win32_Battery for a full table of info, or WMIC PATH Win32_Battery Get EstimatedChargeRemaining etc to get a specific detail