Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

0xC000006D Error running scheduled task

Posted on 2008-06-12
10
Medium Priority
?
691 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

AutoHotkey is an excellent, free, open source programming/scripting language for Windows. It started out as a keyboard/mouse macros product, but has expanded into a robust language. This article provides an introduction to it, with links to addition…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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.

783 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