Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / December 2004

Tip: Looking for answers? Try searching our database.

Connect to Terminal Server 2003 via .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason Newell - 14 Dec 2004 20:22 GMT
All,
   I am needing to programatically (.NET) open a Terminal Server 2003
session, execute a program and close the session.  Sounds easy enough.
Well, I've gOOgled my brains out and I've found myself right back where I
started, with nothing.  Does anyone have some detailed examples on how to
accomplish this?
   Here's a short list of my trip:
http://support.microsoft.com/kb/q281417/
http://www.microsoft.com/downloads/details.aspx?FamilyID=33AD53D8-9ABC-4E15-A78F
-EB2AABAD74B5&displaylang=en


   I've tried installing the Windows Server 2003 Administration Tools Pack
from here:
http://www.microsoft.com/downloads/details.aspx?FamilyId=C16AE515-C8F4-47EF-A1E4
-A8DCBACFF8E3&displaylang=en


   I've read about Terminal Services Advanced Client (TSAC) but it seems to
no longer be available.  Thanks for the help.

Jason Newell, MCAD
Software Engineer
Dino Chiesa [Microsoft] - 20 Dec 2004 20:02 GMT
Windows XP includes Remote Desktop Web Connection, which is an updated
version of the TSAC.

download it here:
http://www.microsoft.com/windowsxp/downloads/tools/rdwebconn.mspx

If you have previously installed the rdpclient software, you may already
have this thing at c:\windows\web\tswep\msrdp.cab

Regarding programmatic access,
you can also script the MS Terminal Services Client. This may or may not be
what you want.

There are also APIs exposed by Windows Terminal Server.  Maybe you want to
examine
http://msdn.microsoft.com/library/en-us/termserv/TermServ/terminal_services_star
t_page.asp


If you want to create a virtual channel-based app, you may be able to do
that with interop.
a starting point,
http://pinvoke.net/default.aspx/wtsapi32.WTSOpenServer

or you can try a COM -based approach:
http://support.microsoft.com/default.aspx?kbid=299947

-Dino

> All,
>    I am needing to programatically (.NET) open a Terminal Server 2003
[quoted text clipped - 15 lines]
> Jason Newell, MCAD
> Software Engineer

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.