Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to configure my servers to shutdown Windows via a script without actually turning the systems off.

share|improve this question
Why do you want this behavior? – voretaq7 Mar 8 '12 at 19:03
I am using a UPS for several servers. I want them to shutdown when told to from the UPS, but I want them to remain on so that when the power is cut, their last state was “on” and therefore they will turn themselves back on when power is restored. – Corey Mar 8 '12 at 19:19
Servers (and decent motherboards) have a setting to automatically come back when the power comes back. – TomTom Mar 8 '12 at 19:24
+1 - Even every desktop grade Dell I've ever seen has the relevant setting in BIOS. – Robin Gill Mar 8 '12 at 20:09
It's just a simple "can this be done" question. Why all the negativity? – Corey Apr 19 '12 at 12:42

Software for most UPSs will manage this. You configure the system to turn on after a shutdown, often after a certain percentage of battery charge is recovered. This means that if there is a second second power event, the system will have had time to fully power up and then power down again. I usually set this to 40% but it depends on the load.

share|improve this answer
up vote 0 down vote accepted

PsShutdown is a command-line utility similar to the shutdown utility from the Windows 2000 Resource Kit, but with the ability to do much more. In addition to supporting the same options for shutting down or rebooting the local or a remote computer, PsShutdown can logoff the console user or lock the console (locking requires Windows 2000 or higher). PsShutdown requires no manual installation of client software.

psshutdown -s
share|improve this answer
According to TechNet, the -s switch shuts Windows down without powering the system off. I think that's exactly what he wanted. – JohnThePro Apr 19 '12 at 14:09

Your Answer


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.