Forum Home
Press F1
 
Thread ID: 101099 2009-07-01 12:54:00 Vista Scheduled Tasks WarNox (8772) Press F1
Post ID Timestamp Content User
787942 2009-07-01 12:54:00 Hey!

Basically I can't get any scheduled task to run. I created a random batch file:


echo the time is %time%
pause

just to test it and it doesn't work. If I run the batch file manually it opens up fine.

When the task is scheduled and I click RUN it just says 'Launch Failure' and the status stays on 'Queued'.

I've tried running it as Administrator and another admin user and with the options 'only run when user is logged on' both ticked and unticked. I've also played with all the other options are cannot get this task to run. Anyone have any idea why this is?

Vista Business x64.

Error from running the task:

Log Name: Microsoft-Windows-TaskScheduler/Operational
Source: Microsoft-Windows-TaskScheduler
Date: 1/07/2009 11:49:46 p.m.
Event ID: 101
Task Category: Task Start Failed
Level: Error
Keywords:
User: SYSTEM
Computer: bmwf1
Description:
Task Scheduler failed to start "\Monday Backup" task for user "bmwf1\Gregor". Additional Data: Error Value: 2147942658.
Event Xml:
<Event xmlns="schemas.microsoft.com
<System>
<Provider Name="Microsoft-Windows-TaskScheduler" Guid="{de7b24ea-73c8-4a09-985d-5bdadcfa9017}" />
<EventID>101</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>101</Task>
<Opcode>101</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2009-07-01T11:49:46.461Z" />
<EventRecordID>41481</EventRecordID>
<Correlation />
<Execution ProcessID="356" ThreadID="1616" />
<Channel>Microsoft-Windows-TaskScheduler/Operational</Channel>
<Computer>bmwf1</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData Name="TaskStartFailedEvent">
<Data Name="TaskName">\Monday Backup</Data>
<Data Name="UserContext">bmwf1\Gregor</Data>
<Data Name="ResultCode">2147942658</Data>
</EventData>
</Event>

The task is just called 'Monday Backup' but it's actually just running the test batch file. No schedule set at the moment.

Thanks,




Gregor
WarNox (8772)
787943 2009-07-01 21:26:00 It might be something to do with the permissions you have setup. Is this in a domain or just on a local computer? If its a domain then you need to change the bmwf1 part to the name of your domain. If its not then does Gregor have a password as the password cant be blank? Barnabas (4562)
787944 2009-07-01 22:04:00 I have had similar problems . trying to run a batch shortcut gives similar issues . The trick is to add 'Start in' data .

In scheduler get to the properties of the task and go to the 'Actions' tab . Mark the task and click the Edit button below . Complete the 'Start in' info . I am sure this will fix a very frustrating problem .

Let's know how you go .
linw (53)
787945 2009-07-02 04:26:00 Not on a domain and yes 'gregor' has a password set .

---

But what is the 'start in' box for? What do I put in there as an example?

Thanks again,



Gregor
WarNox (8772)
787946 2009-07-02 04:36:00 Not on a domain and yes 'gregor' has a password set .

---

But what is the 'start in' box for? What do I put in there as an example?

Thanks again,



Gregor

"Start in" defines the context - you can just put the full path to the folder which the batch file is in .
somebody (208)
787947 2009-07-02 04:37:00 Do you have UAC on or off? inphinity (7274)
787948 2009-07-02 05:59:00 UAC is off! That is the first thing I get rid of on any Vista computer I use.

---

I think the 'Start in' box could be the key but have no idea what to put in there.
WarNox (8772)
787949 2009-07-02 07:28:00 So I tried playing around with the 'start in' box by putting in random directories as well as the one where the batch file is but still not working.

I'm rather close to reinstalling the OS on this computer and going with xp-32bit.
WarNox (8772)
787950 2009-07-02 09:56:00 So, you put in the full directory path of the batch file e.g. C:\xyz Surprised that didn't fix it.

Swapping OS is no answer. Try turning on History (look to right when Task is highlighted) to see if it gives you the reason it fails.
linw (53)
787951 2009-07-03 06:24:00 Yeah I know swapping the OS is not really an ideal solution.

---

What I posted in my first post is what the error says. Basically "Failed to Launch". Doesn't say why.
WarNox (8772)
1