以编程方式创建和发射和RDP会话(无GUI) [英] Programmatically create and launch and RDP session (without gui)

查看:162
本文介绍了以编程方式创建和发射和RDP会话(无GUI)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方式来创建并启动远程桌面会话在Windows Server编程。

I'd like to know if there is a way to create and launch a Remote Desktop Session on a Windows Server programmatically.

我试图做一个自动工具来创建本地用户,然后启动该联营RDP会话。我已经做LocalUser上创建和(使用NET.EXE)将其添加到远程桌面用户。 但我敲下一步:创建和发布用户的RDP会话。 我不知道如何处理这个问题,而无需在远程桌面客户端GUI。

I'm trying to make an automatic tool to create Local Users and then launch the associate RDP session. I've already made LocalUser creation and adding them to Remote Desktop Users (using net.exe). But I'm struck with the next step : create and launch user's rdp-session. I don't know how to handle this problem without having the Remote Desktop Client Gui.

我的工作在Windows Server 2003上,我使用VS2008与.NET 3.5。

I'm working on a Windows Server 2003 and I'm using VS2008 with .NET 3.5.

问候。

推荐答案

您可以使用远程桌面ActiveX控件进行连接,你需要它托管的形式,但形式并不需要是可见的。举个例子看看 HTTP://www.$c$cproject.com/KB /cs/RemoteDesktop_CSharpNET.aspx

You can use the Remote Desktop ActiveX control to connect, you would need to host it in a Form but the form wouldn't need to be visible. For an example see http://www.codeproject.com/KB/cs/RemoteDesktop_CSharpNET.aspx

这篇关于以编程方式创建和发射和RDP会话(无GUI)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆