Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Schedule task does not work in windows server 2008 R2

I am trying to run a .cmd through the task scheduler in windows server 2008 R2.I have logged in to the server from a user who is in the Administrators group in the server machine.When run the scheduled task,the "Last Run Time" column has the value (0x1) while "Status" is ready.and nothing happened. When run the .cmd just double clicking it works fine.Is this an issue with the users in the server or anything ? does anybody know a solution for this issue?

Thanks

like image 925
kalani Avatar asked Jan 16 '23 12:01

kalani


2 Answers

I'd suggest setting the "Start In..." folder to the directory of where the application is located. Make sure that it has the appropriate permissions for that directory.

That fixed the problem for me!

like image 119
jocull Avatar answered Mar 15 '23 13:03

jocull


I fixed my issue by Running my .cmd file as the SYSTEM user account. Follow these directions:

1) Try to change "Change User or Group…" in the following way: Click "Change User or Group…" Then click “Advanced…” Then “Find Now” Finally look for "SYSTEM" (ended on “s”) select it and click OK

like image 37
Geekgal Avatar answered Mar 15 '23 14:03

Geekgal