DIGIT-ARC read-only archive · snapshot: July 23, 2026

Automated Rebooting

9 posts · originally from https://geek.digit.in/community/threads/automated-rebooting.26282/

G
grinning_devil Original post #1
Mar 30, 2006 at 10:40 PM
I wanna know how to write a batch file that reboots a server at 11PM.

From here, I plan on making this a scheduled task

Any suggestions....and i need the answer ASAP!!
:x
G
Mar 31, 2006 at 1:44 AM
have taken care of it...no worries... !!
ilugd
ilugd #3
Mar 31, 2006 at 11:32 AM
How did you do it?
T
Mar 31, 2006 at 1:54 PM
illugd said:
How did you do it?

well its simple
open notepad
copy paste the following

Code:
shutdown -r -t 01

save it as a .bat file
say restart.bat
then from scheduled task in windows add this to run daily at 11pm
G
Mar 31, 2006 at 10:19 PM
well the method posted by raven was also in my mind,but instead of a bat file,i went ahead directly,

created a new scheduled task,
entered the day and time i wanted it to run,
and in the run field entered the commands -

For Windows 98/ME >> RUNONCE.EXE -q
For Windows 2000/XP/2003 Server >> SHUTDOWN.EXE -r -f -t 01

earlier i was thinking of having a bat file,but nyways i went ahead with the above.
but tell u what....it was not restarting!!
i figured out that it has something to do with windows being locked at that time,so antered the login details in scheduled task..and it solved it !
ilugd
ilugd #6
Apr 4, 2006 at 12:02 AM
I think it is better to use the command directly in the scheduler instead of a convoluted process chain through the batch file. However, it all depends on the need.

However what i really would need would be some way to start the system at at a specified time.
G
Apr 4, 2006 at 1:19 AM
i dont think that willl be possible,as giving power to it at a given time...is....hmmm.....not possible i guess!!
planetcall
Apr 5, 2006 at 6:06 PM
grinning_devil said:
i dont think that willl be possible,as giving power to it at a given time...is....hmmm.....not possible i guess!!

What is your question ?? Reboot doesnt require you to give power to your pc. It must have been already running and that is how it went into reboot. Make your question clear.
G
Apr 5, 2006 at 8:35 PM
my reply was NOT related to rebooting...
it was related to starting a PC by scheduling it....which i dont think is possible

crystal clear ...clean....spotless....easy to understand post...right???