I was an ace with Windows 2003 Scheduled Tasks. Everything just worked. This does not seem to be the case with the 2008 Task Scheduler. I need it to run a batch file that calls osql.exe and then copies a newly created file to a network share. Therefore, the task needs to have the password stored so that it can access remote resources. So I let it save the password. I also went into the local security policy and added the user to "task requires that the user account has log on as batch job" permission. If I do:
runas /user:mydomain\myser cmd
then run the batch file, it works every time. If I try to run it from the GUI it will not run, even though it says "Running" in the Status column. The user account I use is a Domain User and nothing more. For the Actions tab, I have the program starting in the directory where the batch file exists.
Any ideas? Does anyone else struggle with this?