Home All Groups Group Topic Archive Search About

script to reboot domain computers

Author
26 Mar 2009 5:32 PM
Sue
Hi, I would like to know if anyone has a script to reboot all computers
except the Server, at 1 am on a Sunday?
    This would help me so much because the workers never reboot, cause weird
errors after a while.

Author
26 Mar 2009 7:40 PM
Pegasus [MVP]
"Sue" <super.carlo***@hotmail.com> wrote in message
news:Oof8KjjrJHA.2368@TK2MSFTNGP06.phx.gbl...
> Hi, I would like to know if anyone has a script to reboot all computers
> except the Server, at 1 am on a Sunday?
>    This would help me so much because the workers never reboot, cause
> weird errors after a while.

Here are a couple of ways to do this:

- Use the Task Scheduler on your server to run a batch file that
  does two things:
  * It pings each PC.
  * It uses shutdown.exe to reboot those than can be reached.

- Use schtasks.exe on your server to create a scheduled task
  on each machine to invoke shutdown.exe at 1am each Sunday.

By the way, this is really a server issue. A server issue would be a much
better place to post this question.
Author
26 Mar 2009 7:51 PM
Pegasus [MVP]
"Sue" <super.carlo***@hotmail.com> wrote in message
news:Oof8KjjrJHA.2368@TK2MSFTNGP06.phx.gbl...
> Hi, I would like to know if anyone has a script to reboot all computers
> except the Server, at 1 am on a Sunday?
>    This would help me so much because the workers never reboot, cause
> weird errors after a while.

Please ignore my remark about where to post your question. You are, of
course, in a server-type newsgroup.