- Download PsTools or PsShutdown from http://www.sysinternals.com/ntw2k/freeware/pstools.shtml or download from this site.
Notice: The new PsShudown changed its parameters, and the example on this sites does not work as it is. In such case, use the copy on this site, or change the parameter accordingly.
- Just copy PsShutdown onto your executable path, and type psshutdown with command-line options defined below.
- Make a batch file (Shutdown)
psshutdown.exe -t 10 -l
psshutdown.exe -t 10 -f \\server1
psshutdown.exe -t 10 -f \\server2
psshutdown.exe -t 10 -f \\server3
psshutdown.exe -t 10 -f \\server4
- Make a batch file (Reboot)
psshutdown.exe -t 10 -f -r -l
psshutdown.exe -t 10 -f -r \\server1
psshutdown.exe -t 10 -f -r \\server2
psshutdown.exe -t 10 -f -r \\server3
psshutdown.exe -t 10 -f -r \\server4
- Run it from [Scheduled Tasks] from Control Panel