Windows – How to run scheduled task when user logs on via remote desktop

remote desktopscheduled-taskswindows xp

I want to run an application every time I log on to a remote machine with windows XP's remote-desktop.
I set up a schedule using XP's scheduled tasks and the start up modiier ONLOGON (and also tried ONSTART).

However nothing happens when I connect to the machine – and also nothing in the schtasks logs.

With a given time or manually the application can be started via scheduled tasks without problems!

EDIT: It's only working after I logged out explicitly. But when I just close the remote connection and then connect again, the app won't be called.

Background: I try to use BgInfo to print out system infos on the desktop, which shall be refreshed when to user logs on to the system.

Best Answer

Just put the application in the startup folder in the Start Menu for all users. There is a way of programatically testing if the user is on a remote desktop connection or local if you need to, but it's been a long time since I last had to do that.