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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top