Server 2012 R2 Run Program from Task Scheduler not running program
i´ve been trying hard to make similar software run OK when you choose:
Run whether user is logged on or not
It resulted with 2 different software (SyncBack and synctoy) that the problems were in both cases third party soft related problems (not soft problems but things to take into account).
As an example, if you created a Task to run:
"C:\Program Files (x86)\Rock Gym Pro\Backup.exe"
as domain\user1 , With some parameters lik -R "MyBackup", but you configured the task from another user like domain\administrator,
and also set "parameters like -R "MyBackup"" as administrator, software creates "MyBackup" config file under administrator folders (usr/administrator/appdata/roaming/...), so when the task executes as doman\user1 , the program search for "Mybackup" config file in user1 folder.
As result, no file exist in user1 appdata or whatever folders, because you never configured the software from user1, so nothing happen.
To solve this, you have to logon as that user, in the server, in order the folders be created, test the script from that user (If you want with scheduled task, with the "Run whether user is logged on or not" option activated,), and then you configure the task from administrator user and then set to run as user1. That way when task run the software will find the "MyBackup" files and execute with no problem.
That was my problem, hard to find because there weren´t logs of this anywhere (or i couldn´t find them), just nothing happened when you run the task and finally says "Task Executed Successfuly".
Please let me know if i helped...Sorry my english im from Argentina.