4.6

Table Of Contents
Running View Client from the
Command Line 18
You can run View Client for Windows from the command line or from scripts. You might want to do this if
you are implementing a kiosk-based application that grants end users access to desktop applications.
You use the wswc command to run the View Client for Windows from the command line. The command includes
options that you can specify to change the behavior of View Client.
This chapter includes the following topics:
n
“View Client Command Usage,” on page 335
n
“View Client Configuration File,” on page 337
n
“View Client Registry Settings,” on page 337
n
“View Client Exit Codes,” on page 338
View Client Command Usage
The syntax of the wswc command controls the operation of View Client.
Use the following form of the wswc command from a Windows command prompt.
wswc [
command_line_option
[
argument
]] ...
The command-line options that you specify alter the behavior of View Client.
By default, the path to the vdmadmin command executable file is C:\Program Files\VMware\VMware
View\Client\bin\wswc.exe. For your convenience, add this path to your PATH environment variable.
Table 18-1 shows the command-line options that you can use with the wswc command.
Table 18-1. View Client Command-Line Options
Option Description
/?
Displays the list of command options.
-checkin
(Local Desktop only) Checks in the specified desktop and unlocks the online
equivalent.
This option requires that you also specify the -desktopName option.
-checkout
(Local Desktop only) Checks out the specified desktop, and locks the online
equivalent.
-confirmRollback
(Local Desktop only) Suppresses the confirmation dialog box that appears when
you use the -rollback option. To perform rollback in non-interactive mode,
also specify the -nonInteractive option.
-connectUSBOnStartup
Redirects all USB devices to the desktop that are currently connected to the host.
This option is implicitly set if you specify the -unattended option.
VMware, Inc. 335