Solved

0xC000006D Error running scheduled task

Posted on 2008-06-12
10
657 Views
Last Modified: 2008-06-20
Trying to run a scheduled task but it continually fails.  Running filemon to see if there is anything not going through and receive
mtask.exe 796  open  UNC string to Application across network reulsts are the 0xC000006D Options: Open Access: execute

Has anyone seen this before

Moved server to new domain and all tasks failed after that.  Re created the tasks with new "Logon as Batch" username and credentials and task still fail.  

125 points refunded.
~sirbounty, zape
0
Comment
Question by:OSIadmin
  • 6
  • 4
10 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 21769604
how's your task setup?
Anything in your \windows\SchedLgU.Txt file?
0
 

Author Comment

by:OSIadmin
ID: 21770617
"DB-Prod-Grap.job" (DB-Prod-Graph.exe) 6/12/2008 9:11:28 AM ** ERROR **
      Unable to start task.
      The specific error is:
      0xc0000022: (Unable to find an error message)
      Try using the Task page Browse button to locate the application.

The Task is using a domain user that has Log on as Batch Job right from a group policy.  The task is calling an executable from a UNC path on another server.  

The task ran without issue on the other domain, when we switched the server from an nt4 domain to a 2003 domain, the tasks all failed.
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 21771323
And you're running this on a 2k server, or 2k3?

Try scheduling it with the command-line tool:

schtasks /create /ru DOMAIN\USERNAME /rp PASSWORD /sc DAILY /st 09:00:00 /tn TEST /tr "\\SERVER\SHAREDFOLDER\FILENAME.EXE"
 
(Obviously changing the items in all-caps as appropriate)

Open in new window

0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

Author Comment

by:OSIadmin
ID: 21771848
Its running on a Win2k box
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 21772208
And did you try what I suggested?
0
 

Author Comment

by:OSIadmin
ID: 21772253
not yet have not had a chance
0
 

Author Comment

by:OSIadmin
ID: 21823742
Used a workaround to get the error to go away.
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 21827304
Can you elaborate on the workaround?
And can you respond if you ever even attempted my suggestion?
0
 

Accepted Solution

by:
OSIadmin earned 0 total points
ID: 21836070
Sorry about not leaving a better explained solution, was a busy day:

The workaround involved modifying the GPO to allow a specific Domain user to be the Local Admin of the server and also login as batch user. The username exists in both Domains and uses the same password and has the proper rights in both of the directories that it needs to work in.
The scheduled task now runs without an error.

Again sorry for the weak initial solution and thanks for your help
0
 

Author Comment

by:OSIadmin
ID: 21836081
I tried your suggestion with the same results that i had before the scheduled task did not run.  
For the future though I found setting up the tasks per your suggestion to be much easier than the wizard.

Thanks for the help
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question