Windows Task Scheduler directory name is invalid

Posted on 2013-01-02
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?
Question by:kxfcnsf99
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
  • 4
  • 2
LVL 23

Expert Comment

by:Thomas Grassi
ID: 38736740
LVL 29

Expert Comment

ID: 38736749
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 ?

Author Comment

ID: 38736759
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.
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

LVL 23

Expert Comment

by:Thomas Grassi
ID: 38736788
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.

Author Comment

ID: 38751205
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.

Accepted Solution

kxfcnsf99 earned 0 total points
ID: 38805988
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.

Author Closing Comment

ID: 38823777
The task now runs under the new user account.

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The …
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.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
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 …
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