Script to shutdown several Windows 2003 servers
Posted on 2009-02-19
Hi Experts. Over the last couple of months, our server room has overheated 3 or 4 times to the point that the entire system had to be shutdown for a day. While that is a problem in of itself, the other problem is that the servers were just powered off by using the "on/off" button on the servers, not shutdown gently. This was mainly due to the IS Director coming in late at night or early, early morning and not knowing or wanting to shut them down one at a time.
So, with that said, I thought it would be easier on the servers and on the tech that had to come in to shutdown the servers to have a simple batch file that ran a script, supplied the reason (over heating) and then shut the servers down. That all sounds great but my weakness is scripting. I know of PSTools but I know that not all techs here have it installed so I would ask that PSTools (psshutdown) be used as a last resort.