Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Windows Task Scheduler directory name is invalid

Posted on 2013-01-02
7
Medium Priority
?
6,065 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
[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
  • 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
How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

 
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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 …
As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
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 …

715 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