I have been using scheduled tasks to reboot a small amount of windows 2003 servers, I'd like to start rebooting the rest (400) every three months.
Whats the most efficient way to implement this on 2003 without having to visit the server.
I have been using scheduled tasks to reboot a small amount of windows 2003 servers, I'd like to start rebooting the rest (400) every three months.
Whats the most efficient way to implement this on 2003 without having to visit the server.
Use a script to call
shutdown /r /t 0 /m \\server
. The /m switch executes the shutdown on a remote machine. As a rough example, if you have a text file with each server name on a separate line, using PowerShell from a control computer, you could run:You shouldn't reboot servers just for the sake of it. If a server "slows down" over time, you should be tracing the root cause of this, not rebooting it randomly. And if its performance doesn't degrade over time, why are you bothering with useless reboots?
Besides, if a server goes more than three months without a single reboot, this means you're not regularly applying updates to it; and this is a far more worrying issue...