[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.7

Windows 2008 task can not schedule bat file

Asked by Jerry3 in Windows 64-bit, Windows Server 2008, Shell Scripting

Tags: windows 64-bit cmd.exe bat httprequester.vbs task scheduler

Hi there

I have made a BAT file that executes ASP page in localhost using httprequester.vbs. It works great using the command prompt as batch.bat.

I wanted to task schedule this task to run every 5 minutes using task scheduler as I did on win 2003 32-bit and it run ok.

On windows 2008 64 bit it doesn't work. The batch window that opened on windows 2003 doesn't open and the task is not run. Here is the error I am getting:

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Windows-TaskScheduler" Guid="{de7b24ea-73c8-4a09-985d-5bdadcfa9017}" />
  <EventID>203</EventID>
  <Version>0</Version>
  <Level>2</Level>
  <Task>203</Task>
  <Opcode>101</Opcode>
  <Keywords>0x8000000000000000</Keywords>
  <TimeCreated SystemTime="2009-10-21T07:52:09.357Z" />
  <EventRecordID>13944</EventRecordID>
  <Correlation ActivityID="{D70FFDA1-BD21-4287-A2BC-F5A2C1970E42}" />
  <Execution ProcessID="4412" ThreadID="3752" />
  <Channel>Microsoft-Windows-TaskScheduler/Operational</Channel>
  <Computer>zorba</Computer>
  <Security UserID="S-1-5-21-4088145972-1306469851-1962897969-500" />
  </System>
- <EventData Name="ActionLaunchFailure">
  <Data Name="TaskName">\Batch - fiveminutes</Data>
  <Data Name="TaskInstanceId">{D70FFDA1-BD21-4287-A2BC-F5A2C1970E42}</Data>
  <Data Name="ActionName">C:\Windows\SYSTEM32\cmd.exe</Data>
  <Data Name="ResultCode">2147942667</Data>
  </EventData>
  </Event>

This is the launch failure and then the run failure comes...

I am almost certain it has nothing to do with the contents of my batch file as it runs ok using shell and I run the task as administrator and proper permissions are there in the file to run for administrator.

I think the problem is in the system32/cmd.exe file that doesn't start. What is this file? Is it needed to open a shell prompt when running batch? Is it 32-bit and 64-bit mixing something up?

Please help me if you can.
 
Related Solutions
Keywords: Windows 2008 task can not sched…
 
Loading Advertisement...
 
[+][-]10/23/09 12:59 PM, ID: 25647955Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Windows 64-bit, Windows Server 2008, Shell Scripting
Tags: windows 64-bit cmd.exe bat httprequester.vbs task scheduler
Sign Up Now!
Solution Provided By: graye
Participating Experts: 1
Solution Grade: A
 
[+][-]10/23/09 05:52 AM, ID: 25643848Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/23/09 05:56 AM, ID: 25643873Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/23/09 07:04 AM, ID: 25644540Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/23/09 08:56 AM, ID: 25645666Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/23/09 10:37 AM, ID: 25646583Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/23/09 10:45 AM, ID: 25646651Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/23/09 11:08 AM, ID: 25646833Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/23/09 11:23 AM, ID: 25646962Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/26/09 02:04 AM, ID: 25660579Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625