Solved

0xC000006D Error running scheduled task

Posted on 2008-06-12
10
652 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
 

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now