"The user account does not have permission to run this task"

I'm trying to get a scheduled task to run on Windows Server 2008. It has been working fine for months, and then hung, so I killed it, and now I can't get it to start. (In case it's not obvious, I'm not a Windows sysadmin by any stretch of the imagination. I inherited responsibility for this system, more or less.)

The error it gives is: "The user account does not have permission to run this task". The task's "author" is "A". The task's "When running the task, use the following user account:" is "B". And my user is "C". All of A, B, C are members of the Administrators group, so I'm a bit puzzled as to why it thinks I don't have permissions to run this.

Ideas?


Solution 1:

I have found the cause of the error is in the C:/Windows/System32/Tasks folder. When the task is created, a XML file is created in the folder. The problem is the security permissions, under properties, on this file does not allow the user you created for the task to have execute permissions. The other issue is when you create the task in the GPO it doesn't allow you to configure for which operating system. The snap shot above is the task scheduler in Windows 7 which does not match the Server 2008 R2 GPO Task Scheduler.

Solution 2:

Try deleting and recreating the task. It sounds like the ACL on the task may have gotten corrupted.

Solution 3:

I think you can go to C:\Windows\System32\Tasks folder. There find your job folder and finally your job file. Right click and select Properties -> Security -> Advanced (Button) -> Owner (Tab) -> Edit (Button) and change owner to the user you are logged in or to the administrator and press OK.

Again right click on the file and Properties -> Security -> Continue (Button) and check whether the user you are logged or administrator has full control over the file. If not, click on the user or administrator and click on the Full Control check box.