Solved

0xC000006D Error running scheduled task

Posted on 2008-06-12
10
673 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
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.
Suggested Courses

636 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