Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know how to 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 wont output something as simple as the charge level. I just need something simple which I can use for some scripts.

share|improve this question

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

share|improve this answer
Perfect. Thanks! – PSYU Sep 8 '11 at 14:34
thanks, this helped me as well! – Snicksie Dec 31 '12 at 17:38
@PSYU If this answer solved your question, click the checkmark next to it. – Jop V. Aug 30 '13 at 17:18
You can also use: powercfg /batteryreport /output C:\Location\FileName.html This isn't exactly the best for scripts and offers more than simple battery charge level but offers a lot more information regarding health, battery charge history, degradation, etc... However despite the fact that it doesn't display simple info, it is user friendly to read which may pertain to your script and can also be loaded directly after creation of the .html which is easily scriptable. This is actually my preferred method for the script that I use. – BiTinerary May 25 '15 at 23:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .