Scheduled Remote Shutdown (Reboot)

Sometime system administrator wants to shutdown servers at sametime everyday or wants to reboot server everyday early morning, because we know that Windows is not stable to run 7x24 unfortunately.

Configuration

  1. 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.
  2. Just copy PsShutdown onto your executable path, and type psshutdown with command-line options defined below.

  3. Make a batch file (Shutdown)

  4. 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
    
  5. Make a batch file (Reboot)

  6. 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
    
  7. Run it from [Scheduled Tasks] from Control Panel

Back - Support
Google
Web www.grape-info.com