windows 2000 server auto restart
I want to know how can I schedule auto reboot of windows 2000 server from
shceduled task. Is there any command or script? I did research and I found
shutdown.exe /r but that does not work and it requires user intervention. I
want to schedule and do this reboot automatically.
Re: windows 2000 server auto restart
What happens when you try? Also try;
shutdown.exe /r /f
Re: windows 2000 server auto restart
You can run this as a startup script, creates a scheduled task and copies
the shutdown.exe to a workstation:
;Create the scheduled task on remote workstation's
if not exist c:\winnt\tasks\at1.job at 05:00 /every:m,t,w,th,f,s,su shutdown.exe
/r /t 120 /c "This computer will shutdown and restart automatically, please
close your open applications. Your Administrator." /f
:Copy the shutdown.exe to remote workstation
if not exist c:\WINNT\system32\shutdown.exe copy "\\domainname\netlogon\shutdown.exe"
"c:\WINNT\system32\shutdown.exe"
Or use just from the run line:
at 05:00 /every:m,t,w,th,f,s,su shutdown.exe /r /t 120 /c "This computer
will shutdown and restart automatically, please close your open applications.
Your Administrator." /f
Then you should find a scheduled task that runs daily at 5 AM with a timer
of 120 seconds and prompts an info.
Re: windows 2000 server auto restart
Hi Buddy, I'm wondering about the following
http://forums.techarena.in/windows-s...lp/1051106.htm
How exactly can i go about setting the server to restart....
if you can answer in simple terms for me that would be brillant
cheers buddy
Re: windows 2000 server auto restart
Hello gazzaman22,
You are replying to a post from 10/2008, which normally nobody will monitor
anymore.
If you have only one server that you like to schedule to reboot use that
line in a command prompt:
at 05:00 /every:m,t,w,th,f,s,su shutdown.exe /r /t 120 /c "Your text if needed"
/f
This requires that c:\WINNT\system32\shutdown.exe exist. A scheduled task
will be run on 05:00 (at time) in the morning every day, a text window pops
up for 120 seconds (/t 120 /c "comment")
Best regards
Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
> Meinolf Weber;4014507 Wrote:
>
>> Hello Andy,
>>
>> You can run this as a startup script, creates a scheduled task and
>> copies
>> the shutdown.exe to a workstation:
>> ;Create the scheduled task on remote workstation's
>> if not exist c:\winnt\tasks\at1.job at 05:00 /every:m,t,w,th,f,s,su
>> shutdown.exe
>> /r /t 120 /c "This computer will shutdown and restart automatically,
>> please
>> close your open applications. Your Administrator." /f
>> :Copy the shutdown.exe to remote workstation
>> if not exist c:\WINNT\system32\shutdown.exe copy
>> "\\domainname\netlogon\shutdown.exe"
>> "c:\WINNT\system32\shutdown.exe"
>> Or use just from the run line:
>>
>> at 05:00 /every:m,t,w,th,f,s,su shutdown.exe /r /t 120 /c "This
>> computer
>> will shutdown and restart automatically, please close your open
>> applications.
>> Your Administrator." /f
>> Then you should find a scheduled task that runs daily at 5 AM with a
>> timer
>> of 120 seconds and prompts an info.
>> Best regards
>>
>> Meinolf Weber
>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>> confers
>> no rights.
>> ** Please do NOT email, only reply to Newsgroups
>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>> Hi Buddy, I'm wondering about the following
>> http://forums.techarena.in/windows-s...lp/1051106.htm
>> How exactly can i go about setting the server to restart....
>>
>> if you can answer in simple terms for me that would be brillant
>>
>> cheers buddy
>>
> http://forums.techarena.in
>
Re: windows 2000 server auto restart
[QUOTE='Meinolf Weber [MVP-DS];4485410']Hello gazzaman22,
You are replying to a post from 10/2008, which normally nobody will monitor
anymore.
If you have only one server that you like to schedule to reboot use that
line in a command prompt:
at 05:00 /every:m,t,w,th,f,s,su shutdown.exe /r /t 120 /c "Your text if needed"
/f
This requires that c:\WINNT\system32\shutdown.exe exist. A scheduled task
will be run on 05:00 (at time) in the morning every day, a text window pops
up for 120 seconds (/t 120 /c "comment")
Best regards
Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
Hi thanks for your answer.....can you tell me in your experience is it a good idea to reboot server every day?(i.m having a problem with some services which need to be restarted every morn)
Also how would i go about disabling such a command?
Also can i preform this command remotely?
About the command to restart server.....do i just type it into "run"
Re: windows 2000 server auto restart
Hello gazzaman22,
Shutdown.exe also works remote. Check the command line for all options, "shutdown
/?". Normally a server runs long without rebooting there it is made for.
If you have to reboot it daily, fix the problem and do not reboot as a layz
solution.
Best regards
Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
> 'Meinolf Weber [MVP-DS Wrote:
>
>> ;4485410']Hello gazzaman22,
>>
>> You are replying to a post from 10/2008, which normally nobody will
>> monitor
>> anymore.
>> If you have only one server that you like to schedule to reboot use
>> that
>> line in a command prompt:
>> at 05:00 /every:m,t,w,th,f,s,su shutdown.exe /r /t 120 /c "Your text
>> if
>> needed"
>> /f
>> This requires that c:\WINNT\system32\shutdown.exe exist. A scheduled
>> task
>> will be run on 05:00 (at time) in the morning every day, a text
>> window
>> pops
>> up for 120 seconds (/t 120 /c "comment")
>> Best regards
>>
>> Meinolf Weber
>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>> confers
>> no rights.
>> ** Please do NOT email, only reply to Newsgroups
>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>> Hi thanks for your answer.....can you tell me in your experience is
>> it a good idea to reboot server every day?(i.m having a problem with
>> some services which need to be restarted every morn)
>>
>> Also how would i go about disabling such a command? Also can i
>> preform this command remotely?
>>
>> About the command to restart server.....do i just type it into "run"
>>
> http://forums.techarena.in
>