Re: Restarting SBS 20003 via batch file

Tech-Archive recommends: Fix windows errors by optimizing your registry



The info from Charlie gives you the batch file. The question I have is why
do you want to have scheduled restarts of your SBS? There really shouldn't
be any need for that.

"Cam474" <Cam474@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2359FB06-2A8C-4663-9701-C3703167C05B@xxxxxxxxxxxxxxxx
I have written the following batch file to allow scheduled restarts of the
server:-
Shutdown /r /f
When I run the batch file it begins the shutdown process, and the desktop
darkens, but it hangs there. I can still manually then click on start /
shutdown / restart and complete the reboot, but I require the whole
process
to be automated.
Do I need to use the /t switch to set a timeout?

Thanks in advance.
Cameron



.



Relevant Pages

  • Re: Batch file on shutdown
    ... the Shutdown API provides no means to "halt" ... The better approach is to embed a shutdown request in your batch file, iow, ... Instead of the shutdown process managing ... execution of other apps/processes, ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Improved solution for the slow Exchange2003 shutdown problem
    ... timeout on exchange, hence it not being supported on a non SBS machine. ... > to do it and end up waiting the 15 minutes for the shutdown. ... > 1) Create a batch file named Exchange_Shutdown.bat with this one line " ... > Shutdown script icon. ...
    (microsoft.public.windows.server.sbs)
  • Re: Need help with a "Shutdown" Script...
    ... appropriate thing here is to run the shutdown batch file and give ... Task" executing this batch file if the computer has been idling for 45 ...
    (microsoft.public.windowsxp.general)
  • Re: Boot Win XP Home too long
    ... Open a command prompt and type or paste: ... >> I don't honestly know of a way to make the batch file run at shutdown ... >> to try to run it at boot. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Elegant shutdown method
    ... I generally use the command line Shutdown.exe command with ... I also believe there is a shutdown tool in the Psutils (available ... I schedule with the scheduler so I am not sure about the time. ... I simply setup a batch file on the Main ...
    (microsoft.public.windows.server.active_directory)