RDP Session Does Not Close when Program Closes. Using Visual Basic NET to access Terminal Services Session and Client Information. This test program is being posted in case others have an interest in what proved to be a fairly difficult task of developing code that uses Visual Basic NET to access Terminal Services information.
The attached Visual Basic NET program accesses Terminal Services Session information. It also accesses the Client Information for the client which executes this program on a Terminal Services Server. The program has been compiled with Visual Studio 2005 and executed on Windows Server 2003 It has also been compiled with Visual Studio Orcas and executed on Windows Server 2007 (Longhorn Server). Imports System.Runtime.InteropServices'This is a test Visual Basic NET program that accesses Terminal Services Session information.'It also accesses the Client Information for the client which executes this program on a TS Server.' Public Class Form1 Private Enum WTS_CONNECTSTATE_CLASS WTSActive WTSConnected WTSConnectQuery WTSShadow WTSDisconnected WTSIdle WTSListen WTSReset WTSDown WTSInit End Enum.
Translating session ID into client name. Ctrl-Alt-Del ® IT Consultancy - citrix brisbane virtual office tsloadbal tsbackdrop tswhereis bombprof icsweep remprof defset qrypubapp qrydeptapp qryclientip tspasschg gettscip qrytscip tsreboot tslogoff getpubapp envtscip tsmsg remote desktop pcbackdrop. Ctrl-Alt-Del ® IT Consultancy goes beyond just simple Systems Integration of Thin Client Technology.
In the need to further extend the possiblility of Virtual Office Technology, Ctrl-Alt-Del ® IT Consultancy has written many applications and utilities to assist systems administrators and technical experts in maintaining a Citrix or Terminal Services environment. The number of applications provided by Ctrl-Alt-Del ® IT Consultancy has grown so large, we have created an application suite called the CAD Util Pack. The following freeware utilities have all been written by the dedicated Staff at Ctrl-Alt-Del ® IT Consultancy. If you have an idea for any utility that may assist you in your IT tasks please email us here. These utilities would not have been possible without the support of the Citrix /TS community and these brilliant people - DOUGLAS A. Ctrl-Alt-Del ® IT Consultancy would like to recommend the following Blog sites for community news and views in the thin client world.
How to get the Client IP address or hostname of a Citrix session or Terminal Services Session? » ocb - Citrix Community. The Ultimate Guide to Terminal Server Printing - Design and Configuration. By Brian Madden This paper is excerpted from the book Terminal Services for Windows Server 2003:Advanced Technical Design Guide, by Brian Madden and Ron Oglesby.
At some point during your Terminal Server system design you'll remember that your users will probably want to print something sooner or later. Printing is an important function to users within their Terminal Server sessions, yet it has traditionally been the biggest nightmare for administrators of server-based computing systems. Ideally, printing from applications via RDP sessions should be no different than printing from any other application.
It should be relatively seamless to the users, allowing them to click the print button within their application, easily select a printer, and quickly receive their printouts. All server-based computing environments pose unique challenges to printing. On top of that, Windows Server 2003 uses the same printing subsystem that was designed way back in the Windows NT days. . • Phase 1. Phase 1. Software Blog » Custom Tweaks for Windows Terminal Server 2003. NOTE: Registry changes mentioned below are suggested changes only; 2X is not responsible for the consequences of any implemented Registry changes.
For custom tweaks to Windows 2003 Terminal Server, to improve the overall end-user experience, please do the following: First, access: HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-TcpUserOverride\Control Panel\Desktop And change these values: “AutoEndTasks” REG_SZ “1″ (terminates programs that aren’t responding)“CursorBlinkRate” REG_SZ “-1″ (prevents the cursor from blinking, cutting down on screen redraws)“DragFullWindows” REG_SZ “0″ (disables “show contents” while dragging a window)“MenuShowDelay” REG_SZ “10″ (delay for showing submenus)“WaitToKillAppTimeout” REG_SZ “20000″ (number of milliseconds to wait before terminating an application that has stopped responding)“SmoothScroll Dword” REG_DWORD “00000000″ (disables smooth scrolling)“Wallpaper” REG_SZ “(none)” (disables wallpaper) Then browse to: