I am using Windows Server 2012 and I try to schedule a task with Windows Scheduler to run an .exe Delphi program. This program writes some data into an Excel form. When the user of the Server is logged in everything works fine. But if the uses is logged out then the task is stuck. So I am guessing there is some issue the users?
The error I receive is:
server execution failed
The setting in the task scheduler is to run even without the user logged on
Has anyone encountered some similar problem?
I am thinking of implementing a CLR-Assembly to write the data on the excel but I am afraid of the performance overload that will be caused. What would be the best-practice of a scenario like this?