Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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 Vernooij Aug 30 '13 at 17:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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