• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1656
  • Last Modified:

Windows Server 2008 Access Denied in Task Scheduler

I have a simple batch file that backs up sharepoint to a network share using stsadm. It is on Server 2008 R2 and scheduled via Task Scheduler. It was working fine until a couple weeks ago. Now when run in task scheduler I am getting Access Denied  0x80070005. However, logged in as the same user set in task scheduler, it works fine if I invoke the bat file by double clicking it. Any clues as to what the issue with task scheduler might be?
Thanks
0
gglollc
Asked:
gglollc
  • 2
  • 2
1 Solution
 
Michael PfisterCommented:
Did the user set in task scheduler change his/her password?
0
 
Rich WeisslerProfessional Troublemaker^h^h^h^h^hshooterCommented:
When you log in as that user -- can you also run the task manually from the task scheduler?

If you create a new scheduled task, pointed to the same batch file - does that scheduled task work correctly?
0
 
gglollcAuthor Commented:
The user (Domain Admin) that I setup in Task Scheduler is the same one that I logged into the server with, so no, the password did not change. I have also tried a different user with the same result. If I manually start the task from scheduler, same result, access denied. I created a new task, same result, access denied.
0
 
Rich WeisslerProfessional Troublemaker^h^h^h^h^hshooterCommented:
Do your scheduled tasks have 'Run with highest privileges' selected, or is that left in it's default condition?  (If it isn't checked, for testing purposes -- does the problem go away if you check it?)

In the Action, which points to the batch file, there is an optional 'Start in' setting.  Have you tried setting that so it forces it to start the batch file from a directory you know you have read/write access to, without the possibility of triggering a UAC check?
0
 
gglollcAuthor Commented:
Run with Highest privileges fixed it. Interesting though it was running without that previously.
Thanks!
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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now