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

x
?
Solved

Windows Task Scheduler directory name is invalid

Posted on 2013-01-02
7
Medium Priority
?
6,390 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
ID: 38736740
0
 
LVL 29

Expert Comment

by:becraig
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 ?
0
 

Author Comment

by:kxfcnsf99
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.
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
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.
0
 

Author Comment

by:kxfcnsf99
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.
0
 

Accepted Solution

by:
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.
0
 

Author Closing Comment

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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Experts-Exchange users below are the steps you can follow to upgrade your Lync server to latest CU's or cumulative updates. Note: Perform it during non-production hours.   Step 1: Backup your lync and SQL server database. Follow below article: h…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
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…

885 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