Run application or script on Windows RDC connection

Posted by NickLarsen on Super User See other posts from Super User or by NickLarsen
Published on 2010-03-22T20:45:12Z Indexed on 2010/03/22 20:51 UTC
Read the original article Hit count: 457

I checked this thread, but it did not solve my exact problem.

I need to run a script on when a connection is made across my network using windows remote desktop connection. The thread listed above works for the initial login, however, if I don't log out (which is necessary for some processes running on my network), then it wont run the script again the next time someone connects to the system using remote desktop connection. Previously we were using pcAnywhere to achieve this, however after running into some graphical issues with pcAnywhere, we have decided to move away from it to RDC.

For a little more information, we need to have an email sent out anytime a connection is made to particular machines. The login name will always be the same for those systems and we do not log off when closing the connection.

© Super User or respective owner

Related posts about windows-xp

Related posts about windows-server-2008