Using Client Information in VMware View

The VMware View Client delivers useful information to the VMware View Agent which can be found in the virtual desktops Windows registry. This information can be used by scripts i.e. for mapping the right network printer based on the location of the View Client device.

The information is stored as environment variables within the registry key: HKEY_CURRENT_USER\Volatile Environment.

This list shows which variables are available:
ViewClient_Broker_DNS_Name (FDQN of the broker)
ViewClient_Broker_Remote_IP_Address
ViewClient_Broker_Tunnel_URL
ViewClient_Broker_Tunneled (True/False)
ViewClient_Broker_URL
ViewClient_IP_Address (IP address of the connecting device)
ViewClient_LoggedOn_Domainname (Domainname)
ViewClient_LoggedOn_Username (Username)
ViewClient_MAC_Address (Client MAC address)
ViewClient_Machine_Name (Client hostname)
ViewClient_Type (Linux/Windows)

You can read this information very easily from the registry using a VB-script:

Example:

Based on the client’s hostname, IP-address or MAC address it would be possible to map a special printer or network drive during logon or reconnect. Companies using hot desks for their employees or just people moving between different workplaces during the day can take advance of that. The script can grab the client name variable, then check it against a database and retrieve the correct network printer for that location. That’s it!

Reference:
http://www.thatsmyview.net/2009/05/29/using-client-information-in-vmware-view/

[quotes_and_tips]

Davoud Teimouri

Professional blogger, vExpert 2015/2016/2017/2018/2019/2020/2021/2022/2023, vExpert NSX, vExpert PRO, vExpert Security, vExpert EUC, VCA, MCITP. This blog is started with simple posts and now, it has large following readers.

Leave a Reply

Your email address will not be published. Required fields are marked *