Home » Scripting, View Agent, View Client

Using Client Information in VMware View

29 May 2009 1,490 views Comments Christoph Harding

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:

    image

    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!

     

    Scripting resources:

    http://msdn2.microsoft.com/library/d1wf56tt.aspx

    http://www.microsoft.com/technet/scriptcenter/tools/scripto2.mspx

    http://www.microsoft.com/technet/scriptcenter/tools/admatic.mspx

    http://www.microsoft.com/technet/scriptcenter/default.mspx

    http://www.microsoft.com/technet/scriptcenter/guide/default.mspx?mfr=true

    Similar Posts:

    blog comments powered by Disqus