My server is on an APC UPS via a USB cable. When the power goes out, I have 10 to 15 minutes to shut everything down gracefully. This is easy for the server but I also have a personal PC on the UPS as well. Chances are good it will be in a state of hibernation when the power goes out.
Using a VBScript or batch file that I can run from the server, how can I:
- Wake the Windows XP PC out of hibernation
- Log on
- Shut it down (I can use the built in shutdown exe for this)