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

  • 2
    @PSYU If this answer solved your question, click the checkmark next to it. Aug 30 '13 at 17:18
  • 2
    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.
    – user431052
    May 25 '15 at 23:47
  • Thanks for your answer. powercfg also requires admin privileges to run whereas WMIC does not.
    – podperson
    Oct 22 '18 at 20:46

for Windows 10, type:



answer is the last item listed under "Recent usage".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.