Programmatically create and launch and RDP session (without gui)

Posted by Adun on Stack Overflow See other posts from Stack Overflow or by Adun
Published on 2010-05-04T16:19:36Z Indexed on 2010/05/04 16:48 UTC
Read the original article Hit count: 199

Filed under:
|
|
|

Hello,

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

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.

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

Regards.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c#