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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic restart of server via scheduled tasks 1

Status
Not open for further replies.

CHokKA

Technical User
Aug 28, 2001
36
0
0
GB
Hi everyone. This might be something really simple to sort out, but I would like to know if there is any way that I can schedule a reboot of our server via Task Scheduler in Windows 2000 Server?? I've had a look in the options but I can't seem to find anything anywhere.

Does anyone know if it's possible to set up??

Thanks.
 
I have a program created from Visual Basic 6 that allows the very thing. When placed onto a fokder on your hard drive you can use task schedualer to schedual reboots on a timed basis. I believe the Windows NT4 resource kit also has a similar program. I can send you a copy if you would like. James Collins
Field Service Engineer
A+, MCP

email: butchrecon@skyenet.net

Please let us (Tek-tips members) know if the solutions we provide are helpful to you. Not only do they help you but they may help others.
 
I would be very grateful if you would send it to me please :) Thanks alot for your help :)
 
Oops, need an email address :)

Could you send it to dominic.stevens@wraith.co.uk ?

Thanks.
 
There you go. Let me know how it works. Works great for me. James Collins
Field Service Engineer
A+, MCP

email: butchrecon@skyenet.net

Please let us (Tek-tips members) know if the solutions we provide are helpful to you. Not only do they help you but they may help others.
 
Hi James
May I have a copy of the re-start program too.
Thankyou
Hassan Shaikh
 
I missed out my e-mail. Could you please send it to:
hshake@net2000ke.com
Thank you again
Hassan Shaikh
 
The program is SHUTDOWN.EXE and is in the NT4 resource kit

We use it as follows

Shutdown \\<server name> /r /t:60 /y /c

<Context>
/r - reboot
/t:60 - give a 60 second warning to anyone on the server
/y - answers any question with yes
/c - force shutdown

this can be ran from scheduled tasks

Dave
 
Will this work on Windows 2000 Servers? Eddie Martin
Network Support Technician

Email: Eddie@digitechcomputer.com

**Don't forget to mark post helpful if it helps to answer your question. It may come in handy for others as well**
 
Two questions:
1. Does it work for Win2K?
2. Is there a parameter to re-start.

Hassan Shaikh
 
Yes it works on win2k servers if you install Terminal Services a standard feature included with all 2k server media.

Install it and use the Command TSSHUTDN
instead of shutdown.

the peramiter is as follows.
from a cmd prompt.

type the following:
at 23:00 /every:M,T,W,Th,F,S,Su &quot;tsshutdn /reboot&quot;
enter


it will reboot in 60 seconds from the reboot command once it is set. ad 60 more seconds for 2 minutes etc.

 
oops almost forgot that will tell it to reboot every night at 11:00pm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top