Is it possible to run a task when a user reconnects to a remote desktop session? Some software is running on a machine that cannot be run as service and must always run, but I also need to trigger some things when a user reconnects to the session. Is this possible? I would really prefer not to have a scheduled task running once a minute...
If you open up the Options in the Remote Desktop connection dialog, you should see a tab named Programs. You can specify the program you want to run, along with its start folder, on that dialog. You can of course also save the settings in a file from the General tab.