This script will query Win32_Battery and will evaluate the value of the BatteryStatus property to determine what to do. There are 11 possible values a value of 2 states the system has access to AC, so I use this as the value to check. If BatterySt

1,667 times
Add to favorites
E-mail Twitter Digg Facebook
Be the first to ask a question.