On Windows 7, i scheduled a task to run an .exe. on logon of any user. It works, but not seeing the program's GUI or Notification Area icon.
- When run manually by a non-admin user, the desired .exe always requests an admin password. That is fine.
- When run manually, a GUI (window) is displayed, and an icon is displayed in the notification area, which is good.
- I want to see the same icon when the task is run by Task Scheduler.
Here's how i created a task in Task Scheduler to execute the .exe:
- On 'General' tab, under "use the following user account", i select the admin user.
- I choose "Run whether user is logged in or not".
- UNcheck "run with highest privileges".
- "Configure for: Windows 7"
- Trigger: logon of any user.
- Actions: my desired .exe.
- Conditions: nothing checked.
- Settings: checked on: Allow task to run on demand, Run as soon as possible, and If fails, restart every 1 minute. If running: do not start a new instance.
The program starts correctly-- on login, i can see the task running in Task Manager. But, i do not see the program's GUI or Notification Area icon.
Other Task Scheduler settings i've tried will not start the program. Eg, under "use the following user account", select "Users" or the specific non-admin user for whom the program should run, and pick "Run with highest privileges". Withs those settings, the program does not start on logon.
How to show the program's GUI and Notification Area icon?
The following questions do not appear to address this issue:
i also posted this question here: