six4rm
Enthusiast
Enthusiast

Identify terminal IP address connecting to View desktop

Hi,

I've been looking at using a script of some sort to aide our helpdesk when troubleshooting desktop issues in our VDI environment. At present we have a little script to identify the computer name and the username of the current session. What I would like to incorporate into this script is a way of identifying the IP address of the thin client that the user is connecting from. This would allow our helpdesk staff to VNC to the thin client itself and shadow the user session for troubleshooting purposes.

Any one know if there's a way of doing this?

0 Kudos
3 Replies
six4rm
Enthusiast
Enthusiast

I have managed to get this to work by extracting some information out of the registry. After reading this document again it was pretty obvious that it was do-able.

https://www.vmware.com/resources/techresources/10103

The registry key can be found here "HKEY_CURRENT_USER\Volatile Environment\" and the key I extracted is "ViewClient_Broker_Remote_IP_Address". I wrote a simple VBScript to extract the key and echo it to the user.

This is going to help our helpdesk a great deal. :smileygrin:

0 Kudos
buckethead
Hot Shot
Hot Shot

Another option is to use BGInfo from MSFT.  We make sure the desktop of all of VDI's has the machine name, boot time, View Tools version, View Client Agent version, Thin Client Name, thin client IP, and IP of VDI on the desktop background.  This has been a huge help to the support staff.  You found the registry key that contains the info that you are looking for, but this could be another way to provide you the data your support staff needs.

http://technet.microsoft.com/en-us/sysinternals/bb897557

0 Kudos
gunnarb
Expert
Expert

You found the best way but another way is to run this:

c:\WINDOWS\system32\netstat.exe -a -p TCP

That'll give you the IP of the terminal (Or any device connected)

-Gunnar

Gunnar Berger http://www.gunnarberger.com http://www.endusercomputing.com
0 Kudos