Re: windows 2000 server auto restart
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
> 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.
>