Solved

Windows Task Scheduler directory name is invalid

Posted on 2013-01-02
7
4,737 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
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 the different options available in the Backstage view in Excel 2013.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

910 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

26 Experts available now in Live!

Get 1:1 Help Now