Question: I have a scheduled task running on Windows 7 and it returns 0x2 (according to [this](http://www.kineticcomputer.com/tips/1401-last-run-result-(0x2)-in-task-scheduler-as-administrator.htm) article, it means "access denied" and according to [this](https://answers.microsoft.com/en-us/windows/forum/windows_7-performance/scheduled-task-returns-0x2/8778cc36-9e4b-4871-9482-6cb9a7e9dce6) article it means "an issue with the file") every time is runs.

The scheduled task runs a .BAT file. 
The task is set with highest privileges. 
The .BAT file runs successfully from the CMD.

most links in those articles are deprecated, any idea how to solve this issue?

Answer: 
I resolved the issue by calling the batchfile under "Program/Script" & set the complete absolute path in "Start In (optional):" box like below:

```
Program/Script: Process.cmd
Start In (optional): T:\Processing\clients\myTest

```

Hope this helps.
Another option as described here: [Run .bat in Task Scheduler](http://www.networkinghowtos.com/howto/task-scheduler-error-code-0x8007010b/)

```
Program/Script: T:\Processing\clients\myTest.bat
Start In (optional): T:\Processing\clients\

```