I have a exe fil created in visual studio 2013 which does requires one parameter to execute. I want to run it at 02:00 PM on daily when user logged on/off through the windows task scheduler. I followed below steps to schedule a exe to run it through windows task scheduler.
Step1: Created new task with name "Billing Update" ,and i have set it with option shown below run whether user logged on or not.
Step 2: Set up trigger option to run exe on daily at 02:00 PM.
Step 3: Set up Action tab to select Billing.exe with arguments 2015.
Step 4 : I clicked on the ok button it asked me for the user name ,password to run the exe under condition of whether user logged on or not. I did set it with appropriate credentials and hit with the ok .
When i logged of to see the execution of program it did not worked.
I checked with the below possible conditions to run the program.
1. I ran the program with setting Option->Run only when user logged on. (Output Result-Program worked)
2. I ran the Notepad.exe program with setting Option->Run whether user logged on or not. (Output Result-Program failed)
2. I have checked for securities required to assign the Users and Groups on General->Change User Or Groups for this i have given full access to D:\Billing.exe program using security (Output Result-Program failed).
When i run the same program using the same setting it does show below message.
I have googled out for the possible solution but did not get appropriate one ,Why does task scheduler does not run the program when i set setting to "Run whether user logged on or not". Please advise me for the same with detailed solution that why does it Show JIT MESSAGE SHOWN ABOVE .