Schedule Task Last Run Result 0x2

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?

7

2 Answers

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

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like