How to get a Terminal Server Client Name in vb.net

  • Thread starter Thread starter Jim Bob
  • Start date Start date
J

Jim Bob

I know how to get a computer name in VB.net such as:

' Get Computername
Dim host As IPHostEntry = Dns.GetHostByName(Environment.MachineName)
lbHostName.Text = host.HostName.ToString

However, I need to get a Terminal Server Client Name for a session
running on a Terminal server. Does anyone know how to do this?


jwc
 
Generally the terminal server sets up an environment variable with this
information for citrix it is "%CLIENTNAME%".

Cheers,

Greg
 
Back
Top