I have a scheduled task that runs an app; let's say notepad.exe. If the task "runs only when a user is logged in," I can see notepad, but if the task "runs whether user is logged in or not" notepad does not run in interactive mode. And even if I am logged in and run the task in this mode, I cannot see the notepad window or the process until I select "show all" in task manager. The problem is when notepad has an error, upon logging in, I cant see that error so there's no way of telling what the error is or what notepad was doing when it got the error. It looks like the task cant run in interactive mode since there is no logged in user at the time it starts. So my question is: is there a way to change notepad to interactive mode once a user does log in?
Looking at a programmatic solution, is there a way of using shell32 or user32 to change an application to interactive mode at run time?
Also, my issue is not with notepad obviously... just a proof of concept.