Task Scheduler failing with error

Say, Win2008 Server.
Use Highest privileges ticked.
Hope you can help. Tx

Log Name:      Microsoft-Windows-TaskScheduler/Operational
Source:        Microsoft-Windows-TaskScheduler
Date:          28/08/2013 11:27:48 AM
Event ID:      103
Task Category: Action start failed
Level:         Error
Keywords:      (1)
User:          WIN-F9ES4UNSFER\A1T01
Computer:      WIN-F9ES4UNSFER
Task Scheduler failed to start instance "{63c04e58-53d4-4582-912e-62b9902f8643}" of "\UpdateShifts"  task for user "WIN-F9ES4UNSFER\A1T01" . Additional Data: Error Value: 2147942593.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <Provider Name="Microsoft-Windows-TaskScheduler" Guid="{DE7B24EA-73C8-4A09-985D-5BDADCFA9017}" />
    <TimeCreated SystemTime="2013-08-28T09:27:48.202352900Z" />
    <Correlation ActivityID="{63C04E58-53D4-4582-912E-62B9902F8643}" />
    <Execution ProcessID="1000" ThreadID="7028" />
    <Security UserID="S-1-5-21-3761988980-1366609841-3711934126-1013" />
  <EventData Name="TaskFailureEvent">
    <Data Name="TaskName">\UpdateShifts</Data>
    <Data Name="InstanceId">{63C04E58-53D4-4582-912E-62B9902F8643}</Data>
    <Data Name="UserContext">WIN-F9ES4UNSFER\A1T01</Data>
    <Data Name="ResultCode">2147942593</Data>
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

shaunwinginAuthor Commented:
Afraid didn't help
David Johnson, CD, MVPOwnerCommented:
Guessing you're trying to run updateshifts as system, is this correct? can you run the task on demand?
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Tony GiangrecoCommented:
I'd update the username and password, make sure it can run without the user logged in and run with highest priviledges.

Set the schedule to run a minute after you make these changes and watch it. Try running it manually. Also try executing the app without using the task scheduler, it might be an app problem.
shaunwinginAuthor Commented:
Same error if try run manually.
We've also created a batch file and it runs fine on its own but - but when run it manually see status as "running" for ever....
Tony GiangrecoCommented:
If the app runs for ever, then that is possibly another problem. Shouldn't the app complete in an appropriate time and end properly? That may be a permissions issue or access issue based on what the app does.

Initially, I'd resolve the app issue and make sure it runs clean on it's own. Then test it in the scheduler. The first issue may be causing the 2nd issue.
shaunwinginAuthor Commented:
The bat file has one instruction notepad.exe
It opens when run as bat file.
some issue with scheduler....
You can't run notepad in a non-interactive session.  You can run the task as the current logged on user and it would work, because notepad requires interaction it will not work with a scheduled task and being run as a different user than the logged in user.

Trying creating a file from the .bat file instead of trying to open notepad


@echo off
dir > test.txt

Open in new window

And see if the test.txt file exists after running the scheduled task.
shaunwinginAuthor Commented:
Tx, it was created - I put the statement as test1 and test2 on either side of the Access.accdb file as trying to run an MS Access 2013 .accdb database which has an autoexec.bat at startup and closes itself when executed,,,

Both test1 and test2 appear but the Access DB is not opened as date access is unchanged.

Any ideas?
Is access configured to run as a non interactive command line only program or are you trying to open it interactively?  I suspect you will have the same problems as you did using notepad if you are trying to open it interactively.

What are you trying to achieve, what is the purpose of running Access via a scheduled task?
shaunwinginAuthor Commented:
Access does not run interactively and when run on its own closes down itself.

Access needs to update tables on a linked database.
shaunwinginAuthor Commented:
If I run the bat file which calls Access - Access launches and closes without a problem, but not when I launch the bat file described above from the scheduler...?
David Johnson, CD, MVPOwnerCommented:
if you replace msaccess.exe with notepad.exe does it work via the scheduler? If not then it is because access has a gui so it requires a logged in user.. I tried running access and I had to check run if user logged in and not run as specified user or if user is logged in or not.  Otherwise in taskmanager I had an instance of msaccess but it was stalled.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
shaunwinginAuthor Commented:
Tx  -this solved issue
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.