You can run View Client from the command line or use a script to connect a client to a remote session.

You would usually use a command script to run View Client on a deployed client device.

For an example of a script that runs View Client on a Windows system, examine the file C:\Program Files\VMware\VMware View\Client\bin\kiosk_mode.cmd.

Note

On a Windows client, USB devices on the client are not forwarded automatically if they are in use by another application or service when the desktop session starts. For View Client from View 4.6.x and earlier, you must ensure that you have installed the drivers on the client for any device that you want to forward. On both Windows and Linux clients, human interface devices (HIDs) and smart card readers are not forwarded by default.

To connect to a remote session, type the appropriate command for your platform.

Option

Description

Windows

Enter C:\Program Files\VMware\VMware View\Client\bin\wswc -unattended [-serverURL connection_server] [-userName user_name] [-password password]

-password

password

Specifies the password for the client's account. If you defined a password for the account, you must specify this password.

-serverURL

connection_server

Specifies the IP address or FQDN of the View Connection Server instance that View Client will use to connect to its desktop. If you do not specify the IP address or FQDN of the View Connection Server instance that View Client will use to connect to its desktop, View Client uses the default View Connection Server instance that you configured for it.

-userName

user_name

Specifies the name of the client's account. If you want a client to authenticate itself using an account name that begins with a recognized prefix string, such as "custom-", rather than using its MAC address, you must specify this name.

Linux

Enter vmware-view --unattended -s connection_server [--once] [-u user_name] [-p password]

--once

Specifies that you do not want View Client to retry connecting in the case of an error occurring.

Important

You should usually specify this option, and use the exit code to handle the error. Otherwise, you might find it difficult to kill the vmware-view process remotely.

-p

password

Specifies the password for the client's account. If you defined a password for the account, you must specify this password.

-s

connection_server

Specifies the IP address or FQDN of the View Connection Server instance that View Client will use to connect to its desktop.

-u

user_name

Specifies the name of the client's account. If you want a client to authenticate itself using an account name that begins with a recognized prefix string, such as "custom-", rather than using its MAC address, you must specify this name.

If View Manager authenticates the kiosk client and a View desktop is available, the command starts the remote session.

Run View Client on a Windows client whose account name is based on its MAC address, and which has an automatically generated password.

C:\Program Files\VMware\VMware View\Client\bin\wswc -unattended -serverURL consvr2.myorg.com

Run View Client on a Linux client using an assigned name and password.

vmware-view -unattended -s 145.124.24.100 --once -u custom-Terminal21 -p "Secret1!"