This should be really simple, but its not. I've created a test batch file which consists of the following and placed it in my root directory. The result should create a .txt file at the end. I can manually execute it with no problem.
echo %date% %time% %UserName% >> c:\test.txt
My problem is, when I try to run this via task scheduler in Server 2008 R2 (My web box) it gives me the OpCode of 2 (File not found). In Task Scheduler, I've told it the start in folder of C:\. In my AD Group Policy, I've given permission to Log on as batch job to my account (Administrator) and did a gpupdate.exe /force, my event viewer for Task scheduler says it finished, however it returns the code of 2.
I've tried this test with .vbs, .CMD, and with ps1 examples all to no avail.