5.2

Table Of Contents
C:\Scripts\myscript.cmd
To run scripts that require console access, prepend the -C or -c option followed by a space. For example:
-c C:\Scripts\Cli_clip.cmd
-C e:\procexp.exe
Supported file types include .CMD, .BAT, and .EXE. .VBS files will not run unless they are parsed with
cscript.exe or wscript.exe. For example:
-C C:\WINDOWS\system32\wscript.exe C:\Scripts\checking.vbs
The total length of the string, including the -C or -c option, should not exceed 260 characters.
Client System Information Sent to View Desktops
When a user connects or reconnects to a View desktop, the View client gathers information about the client
system and View Connection Server sends that information to the desktop. View Agent writes the client
computer information to the system registry path HKCU\Volatile Environment on the desktop.
You can add commands to the View Agent CommandsToRunOnConnect and CommandsToRunOnReconnect group
policy
settings to run commands or command scripts that read this information from the system registry when
users connect and reconnect to desktops. See “Running Commands on View Desktops,” on page 185 for more
information.
Table 8-8 describes the registry keys that contain client system information and lists the types of client systems
that support them.
Table 8-8. Client System Information
Registry Key Description Client Systems Supported
ViewClient_IP_Address
The IP address of the client system. Windows
Linux
Mac
ViewClient_MAC_Address
The MAC address of the client system. Windows
Linux
Mac
ViewClient_Machine_Name
The machine name of the client system. Windows
Linux
Mac
ViewClient_Machine_Domain
The domain of the client system. Windows
Linux
Mac
ViewClient_LoggedOn_Username
The user name that was used to log in
to the client system.
Windows
Linux
Mac
ViewClient_LoggedOn_Domainname
The domain name that was used to log
in to the client system.
Windows
NOTE For Linux and Mac clients, see
ViewClient_Machine_Domain.
ViewClient_LoggedOn_Domainname
is not given by the Linux or Mac client
because Linux and Mac accounts are
not bound to Windows domains.
ViewClient_Type
The thin client name or operating
system type of the client system.
Windows
Linux
Mac
VMware Horizon View Administration
186 VMware, Inc.