Access to files is denied for account running scheduled task

10 pts.
Tags:
Domain
Microsoft Windows Server 2003
Scheduled Tasks
Situation: on a Windows 2003 server I have the following issue: a scheduled job is configured to run under a domain account. When the scheduled task is executed it fails with an "access denied" to a directory on a local drive. However, when I log on to the server with the domain account in question and execute the program from the scheduled task it runs without issues and creates the files as expected in the local directory. Question: what security/group policy or other settings does a domain account need to act as the accout for a scheduled task?

Answer Wiki

Thanks. We'll let you know when a new response is added.

On your local computer directory you have to give permissions for full access.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

DON’T GIVE YOUR USER FULL PERMISSIONS TO ANYTHING!

The best way to do it is execute the scheduled task as the administrator. This means log into the bog as administrator, set up the scheduled task. Make sure to enter “Run as…” and put in the administrative user name as password; configure the task like normal otherwise. Also, make sure that the task will run, even if the administrator is logged in (there is a check box indicating whether this feature is selected or not). Log out. If someone is logged in, or it’s just sitting on the log in screen, the computer will do the task.

-Schmidtw

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following