How to check the status of an UPS?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to check or be notify by Windows that the system is running on
UPS battery and then I would prompt up a message informing the user to save
their work and logout.

The UPS software I am using, UPSCommander seems to register itself as a
Windows Service and appears in the Service List as UPSCommanderService.
I try to use the ServiceController control in VB.NET to query its state but
what I get is Stop, Running, etc. What I want is something like Battery Mode
On, Low Battery Indicator and stuff like that.

Please help!!!

Thank You
Woo
 
Hi,

You can use the wmi for that. Take a look at
win32_uninterruptiblepowersupply class.

http://msdn.microsoft.com/library/d...isdk/wmi/win32_uninterruptiblepowersupply.asp

Ken
-------------------
I would like to check or be notify by Windows that the system is running on
UPS battery and then I would prompt up a message informing the user to save
their work and logout.

The UPS software I am using, UPSCommander seems to register itself as a
Windows Service and appears in the Service List as UPSCommanderService.
I try to use the ServiceController control in VB.NET to query its state but
what I get is Stop, Running, etc. What I want is something like Battery Mode
On, Low Battery Indicator and stuff like that.

Please help!!!

Thank You
Woo
 
Hi,

I am new to the WMI.
My clients are using Windows XP Home, do they need to install anything extra
beside Framework 1.1 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top