Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to schedule server reboots using Active Directory?

Status
Not open for further replies.

hervebin

IS-IT--Management
Feb 21, 2002
35
FR
Is there a way to schedule server reboots using Active Directory?

Thanks
 
Using Active Directory, no, but using the task manager and the shutdown command it is perfectly possible.

Create a task to run out of hours when there are no overnight processes - eg backups - running, then use

shutdown -r -c "Weekly Reboot"

to schedule it once a week at that time.

It needs to be run under the context of an account with permission to shut down the computer.

John
 
Just curious as to the need to reboot servers on a scheduled basis?

Pat Richard, MCSE(2) MCSA:Messaging, CNA(2)
 
Because I use WUS to update my servers.
And sometimes they need to reboot with theses updates.
So I would like to perform a reboot a time per week, to maintain my servers up to date.

Thank you for your answer.

RV

PS: sorry for my english, but I am french
 
I need to maintain my servers the most up to date!!
not once a month through.
And some security patches ask to reboot servers.

If I make a scheduled task, with a specific username, when I will change the password of this account, I will need to change all task on each server.
With one hundred servers...

RV
 
MS only release patches once a month tho so you should only have to reboot them once a month, also with 2k3 sp1 alot of patches don't require a reboot.

As for the rebooting you could use PSShutdown this tool will only need to be installed on one box, you can then run a script on that box to remotly reboot the other servers. All you do is list the other servers in a text file and it runs through rebooting them remotly, i use this for shutting down all of our workstations at the end of the day.

 
You are right !
In fact I'll search the same functionnality that in my Citrix farm.
The script is the best solution.
Thanks everybody.

See you next time.

RV
 
Or...following on from jrbarnett's advice you could just schedule a batch file on one server with the following

shutdown -r -m \\server1 -c "Monthly Reboot"
shutdown -r -m \\server2 -c "Monthly Reboot"
shutdown -r -c "Monthly Reboot"


This will reboot servers 1 and 2 and then itself.


Windows and NT Admin.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top