I have a scheduled task that runs exe which is a windows application. In order to see UI, I need to check "run only if user is logged on", but when I create a scheduled task I cannot specify which user it will run under, so if I specify System account, the exe will run without user interface. User interface only shows up if I run the task as myself while I am logged on.
The thing is that the task will be created on multiple machines and will have to run in logged in user context and be interractive. How can I accomplish that?
the task is created programmatically, using C# and Microsoft.Win32.TaskScheduler namespace
Can anyone help??