Solved

Windows Task Scheduler directory name is invalid

Posted on 2013-01-02
7
4,573 Views
Last Modified: 2013-01-27
I have a windows Task Scheduler task that runs perfectly using my own user account. My user account is also the author of the task.

However, when I run the task using a different user account, I get a last run result of "The directory name is invalid.(0x8007010B )

Please note:
Action: is start a program
Program/script:  entry is enclosed in quotes
Start in (optional): entry is NOT enclosed in quotes

What do I have to do please in order to get the task to run successfully under an account other than my own?
0
Comment
Question by:kxfcnsf99
  • 4
  • 2
7 Comments
 
LVL 23

Expert Comment

by:Thomas Grassi
Comment Utility
0
 
LVL 28

Expert Comment

by:becraig
Comment Utility
Ok so this indicates invalid path and you state clearly you are following best practice:

Action: is start a program
Program/script:  entry is enclosed in quotes
Start in (optional): entry is NOT enclosed in quotes

So two quick questions:
1. Is this running from a unc path or mapped drive ?
2. Do the other user accounts have access to the folder the program / script is being run from ?
0
 

Author Comment

by:kxfcnsf99
Comment Utility
Thank you, but I don't think the article applies, as I don't have any quotes in the Start in (optional): field. I think the issue is that I'm trying to change the account the task runs under.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 23

Expert Comment

by:Thomas Grassi
Comment Utility
is this a domain account or local account?

Local account must have admin rights.

domain account must be added to the computers local account giving the account admin rights.

or you need to run policy editor on loal machine and add the account to the correct rights.
0
 

Author Comment

by:kxfcnsf99
Comment Utility
Thank you trgrassijr55 and becraig. I am researching your comments and checking the account's permissions. I'ill let you know when a solution is found or if I have more questions.
0
 

Accepted Solution

by:
kxfcnsf99 earned 0 total points
Comment Utility
We have solved this problem.
The task was attempting to run a batch file to import data into a SQL Server 2008 R2 database table. The new user account needed to be added into the SQL Server Security/Logins. Once that was done, the task, batch file and SSIS import package all ran successfully.
0
 

Author Closing Comment

by:kxfcnsf99
Comment Utility
The task now runs under the new user account.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

744 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

10 Experts available now in Live!

Get 1:1 Help Now