如何以编程方式使用终端服务 [英] How to use terminal services programmatically
问题描述
我想用我的程序(C#.NET)来访问远程服务器,并执行有计划的连接用户的上下文中,就像使用远程桌面。
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
我猜终端服务应该以某种方式使用,但我不知道到底。 任何帮助将是AP preciated。
I guess terminal services should be used somehow, but I don't know exactly. Any help would be appreciated.
推荐答案
您应该看看这个开源项目:的 HTTP://www.$c$cplex.com/Terminals
它使用终端服务ActiveX客户端(mstscax.dll的)做了很多有趣的事情。
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.
这篇关于如何以编程方式使用终端服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!