How to use terminal services programmatically

I want to access a remote server using my program (C # .NET) and execute the program there in the context of the connected user, just like using remote desktop.

I don't want to just run the program using some user account (like RunAs), but to run a separate run session like Remote Desktop

I think Terminal Services should be used somehow, but I don't know for sure. Any help would be appreciated.

+1


source to share


1 answer


You should check out this open source project: http://www.codeplex.com/Terminals
It uses Terminal Services ActiveX Client (mstscax.dll) to do a lot of cool stuff.



Just download the project and check the source, I'm sure it will provide you with all the information you need to do what you want.

+2


source







All Articles