问题
I want to access remote server using my program (C# .NET) and execute there a program in the context of connected user, just like using Remote Desktop.
I don't want just run a program using some user account(like RunAs), but to have a separate execution session like Remote Desktop
I guess terminal services should be used somehow, but I don't know exactly. Any help would be appreciated.
回答1:
You should check out this open source project: http://www.codeplex.com/Terminals
It uses Terminal Services ActiveX Client (mstscax.dll) to do a lots of interesting things.
Just download the project and check out the source, Im sure it will give you all information you need to do what you want.
来源:https://stackoverflow.com/questions/288796/how-to-use-terminal-services-programmatically