Shut down Windows Server on power failure without vendor-specific third-party software

upswindows-server-2012-r2

Let's say I have a Windows Server 2012 R2 server with a UPS attached.

Is there a generic way to make Windows Server 2012 R2 shut down when power fails, i.e., the system switches to battery power?

I know that most UPS vendors provide proprietary software to do that, and there are lots of tutorials online on how to configure them. However, I want to create a generic server image that will run on a variety of servers with (possibly) different UPS systems. Is there some way to do that without installing vendor-specific software?

Best Answer

This is actually really easy most UPS's support USB and the Battery appears as a standard HID Compliant battery so say Windows sees it (and I assume Linux) as big laptop battery in effect and the standard OS tools will manage it.