Windows – Schedule Task Last Run Result 0x2

scheduled-taskswindowswindows 7

I have a scheduled task running on Windows 7 and it returns 0x2 (according to this article, it means "access denied" and according to this 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?

Best 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.