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.



.



Relevant Pages

  • Re: Server 2003 Time automatically changed
    ... This user account is Member of Builtin Administrator group and Users ... system will be always loged in with this useraccount and i have remote ... NT Backups and few my own scripts ... First scheduled task starts at 12.30 am and the last batch file starts at 4. ...
    (microsoft.public.windows.terminal_services)
  • Re: Automatically log off a user from a client workstation
    ... The following command will lock a workstation: ... Create a Scheduled Task using the following in a batch file or add the batch ... Our software ActiveExit can do that (or lock the computer, ...
    (microsoft.public.windows.server.sbs)
  • Re: Shutdown computer using GPO
    ... We have done it with a startup script to create the scheduled task and copy the shutdown.exe to the machines. ... "Meinolf Weber" wrote: ...
    (microsoft.public.win2000.active_directory)
  • Re: windows 2000 server auto restart
    ... Meinolf Weber;4014507 Wrote: ... ;Create the scheduled task on remote workstation's ... Your Administrator." ... :Copy the shutdown.exe to remote workstation ...
    (microsoft.public.windows.server.general)
  • Re: Get status of scheduled task on remote computer
    ... Thanx for the info but this is a 100% Win2K network. ... >>I would like to get the status of a scheduled task from a remote ... > Clay Calvert ...
    (microsoft.public.scripting.vbscript)