Starting an Executable When a User Logs On

Writing a task that starts an executable when a user logs on is done by defining a logon trigger and an executable action.

Logon Trigger

Logon triggers are activated by their start boundary but they do not start the executable until a specified user logs on. You can specify the logon trigger to start when a certain user logs on by specifying the user in the UserId property of the ILogonTrigger interface (LogonTrigger for scripting).

LogonTrigger Examples

The following examples start Notepad after a user logs on.

Related topics

Using the Task Scheduler