Re: Shutdown chaos

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You might want to try entering shutdown.exe instead of just
shutdown. Enter this in you batch file:

shutdown.exe -i -l -s -t 30

Also, I believe that you need to put the -m switch in front of
\\computername.

shutdown.exe -i -l -s -m \\computername

I also suspect that the message you're receiving about "Directory
Service" might be referring to the Active Directory service used
in a domain. It has nothing to do with the services running on
the local computer.

--
Nepatsfan
<tonyboten@xxxxxxxxxxx> wrote in message
news:1116705851.079076.113880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>A simple problem; I want to automate the shutdown of the pc
> at a specified time. But, to be sure that the process is
> error free, I start in the Windows Command Processor before
> scheduling the task.
> I type:-
> shutdown -i -l -s -t 30. Perfect.
> This is copied into a batch file and run. Chaos. CPU
> useage rises to 100% and the Command Processor scrolls my
> commands at an almost unreadable rate.
>
> Try 'shutdown/?', then add the computer name, as specified in
> System Properties. i.e. shutdown -i -l -s \\computername
> - t 30.
> Doing this at the Command line produces the Remote Shutdown
> Dialog which requires me to provide the name of a computer
> (already given) AND a reason for shutdown. Obligingly, I
> provide a specious reason and shutdown dutifully occurs.
>
> Transferring this to the batch file - sans reason - repeat
> of the former chaos.
>
> Perhaps the location is at fault. The batch file is moved
> from Desktop to Windows. No improvement.
>
> Back to the Remote Shutdown Dialog: I try to browse for
> the computer name and receive the message "The Directory
> Service is currently unavailable"
>
> Search 'Services' in Control Panel but can find no
> 'Directory Services'; but I change a couple of disabled
> sevices to automatic on the offchance that they might be
> responsible. Again, no joy.
>
> Tried navigating to "shutdown.exe" in system32, creating a
> shortcut, then amending the target line with the above
> options, but this, when double clicked, merely brought me
> back to the Remote Shutdown Dialog.
>
> Am now totally at a loss. Since'Bill's bloatware' cannot be
> at fault, I must bear the burden of resposibility. Can anyone
> tell me, please, where I go from here to perform this simple
> task? The administrator password could, conceivably, have a
> bearing on this but, since I am already logged on, I don't see
> how.
>
> Tony.
>


.



Relevant Pages

  • 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)
  • Re: message before turning off
    ... The following file used as a batch file will open a command prompt ... echo off ... You can only use shutdown -a during the time-out period. ...
    (microsoft.public.windowsxp.general)