Announcement Banner
UNSOLVED

proxybox

updated

22 years ago

P

proxybox

24 Posts

0

56687

April 23rd, 2004 13:00

Scheduled Task - shutdown.exe will not execute

Hi,

I tried setting up a shutdown.exe -s scheduled task in xp pro but it will not execute.  When I first set it up, I received the message that I needed to setup a password for the user.   Once I followed those procedures, I was able to manually run the task by right clicking and selecting 'run'.  When I set up a scheduled time, however, the task does not execute at the designated time.  I tried deleting the task and reentering it, but that did not work.  I tried executing a different program, Internet Explorer, as a scheduled task but that did not work either.  I am stuck at this point. 

Thanks in advance for your advice.

Jonathan

  • _rohini_

    123 Posts

    2077

    0

    Posted April 23rd, 2004 14:00

    Hi,
    first thing that pops up is maybe some applications are not quitting to allow the shutdown
    so recreate the shutdown task by adding the -f switch
    shutdown -s -f

    if its not working then its probably not in proper executable format, write a batch file

    start--run--notepad

    @echo off
    shutdown -s -f

    save the file as myShtDn.bat [make sure that the extension is .bat and not something like .bat.txt or anything else]
    and schedule to run the batch file when u would like.

    other switches of shutdown are available by running shutdown /? [u prolly already know this]

    ==rohini
  • proxybox

    24 Posts

    2077

    0

    Posted April 23rd, 2004 15:00

    I think I entered the executable correctly.  If I manually run the scheduled task, I am able to shut the pc down.  The problem is that the schedule shows the correct time, date etc.. but when the time arrives, the task does not execute.  I'm not sure why it passes the time up.  The status area does not even show that it tried to execute.  On prior attempts, I at least got the password not entered entry.

    thanks,

    jon

  • gryjhnhpe

    2 Intern

    •

    1956 Posts

    2077

    0

    Posted April 23rd, 2004 18:00

    When Scheduled Tasks runs it auto add Program  mstinit.exe  Called  SchedulingAgent   to  HKLM/RUN.
    So first check Scheduled Tasks "Advanced" >  doesn't  show  "Start using....."   or  "Continue ......"  if so click on it.

    You could also check by using  Run & type    msconfig    then click OK or press "Enter" key.
    "Startup" tab  for   mstinit.exe .
    When checked click "Cancel" button.