Down and dirty shutdown script
Not the preferred method for shutting down Windows servers; but if you have a power outage and too many servers and too little battery life on your UPS this is better than having them shutdown hard. This script I have dubbed Shut-em-down uses PSshutdown, yes using Windows built shut down command would do the trick as well but it's what I picked.
The code is short and to the point. Ω
@echo off color 0c echo THIS WILL SHUT DOWN ALL SERVERS LISTED IN SERVERS.TXT! echo IF THIS IS NOT WHAT YOU INTEND TO DO CLOSE THIS WINDOW OUT NOW! echo. echo OTHERWISE... pause cls echo FIRE! FOR /F "tokens=*" %%a in (servers.txt) do psshutdown -f -k -t 1 %%a