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.

View Client Command-Line Options shows the command-line options that you can use with the wswc command.

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.

-connectUSBOnInsert

Connects a USB device to the foreground desktop when you plug in the device. This option is implicitly set if you specify the -unattended option.

-desktopLayout

window_size

Specifies how to display the window for the desktop:

fullscreen

Full screen display

multimonitor

Multiple-monitor display

windowLarge

Large window

windowSmall

Small window

-desktopName

desktop_name

Specifies the name of the desktop as it would appear in the Select Desktop dialog box. This is the name as you see it in the select desktop dialog.

-desktopProtocol

protocol

Specifies the desktop protocol to use as it would appear in the Select Desktop dialog box. The protocol can be PCOIP or RDP.

-domainName

domain_name

Specifies the domain that the end user uses to log in to View Client.

-file

file_path

Specifies the path of a configuration file that contains additional command options and arguments. See View Client Configuration File.

-languageId

Locale_ID

Provides localization support for different languages in View Client. If a resource library is available, specify the Locale ID (LCID) to use. For US English, enter the value 0x409.

-localDirectory

directory_path

(Local Desktop only) Specifies which directory on the local system to use for downloading the local desktop.

This option requires that you also specify the -desktopName option.

-logInAsCurrentUser

Uses the credential information that the end user provides when logging in to the client system to log in to the View Connection Server instance and ultimately to the View desktop.

-nonInteractive

Suppresses error message boxes when starting View Client from a script. This option is implicitly set if you specify the -unattended option.

-password

password

Specifies the password that the end user uses to log in to View Client. You do not need to specify this option for clients in kiosk mode if you generate the password automatically.

-printEnvironmentInfo

Displays the IP address, MAC address, and machine name of the client device.

-rollback

(Local Desktop only) Unlocks the online version of a checked out desktop and discards the local session.

This option requires that you also specify the -desktopName option.

To perform rollback in non-interactive mode, also specify the -nonInteractive option and the -confirmRollback option.

-serverURL

connection_server

Specifies the URL, IP address, or FQDN of the View Connection Server instance.

-smartCardPIN

PIN

Specifies the PIN when an end user inserts a smart card to login.

-unattended

Runs View Client in a noninteractive mode that is suitable for clients in kiosk mode. You must also specify:

The account name of the client, if you did not generate the account name from the MAC address of the client device. The name must begin with the string “custom-” or an alternate prefix that you have configured in ADAM.

The password of the client, if you did not generate a password automatically when you set up the account for the client.

The -unattended option implicitly sets the -nonInteractive, -connectUSBOnStartup, and -connectUSBOnInsert options.

-userName

user_name

Specifies the account name that the end user uses to log in to View Client. You do not need to specify this option for clients in kiosk mode if you generate the account name from the MAC address of the client device.

Options that you specify on the command line or in the configuration file take precedence over any global system policies that you have defined, which in turn override user policies.

You can specify all options by Active Directory group policies except for -checkin, -checkout, -file, -languageId, -localDirectory, -printEnvironmentInfo, -rollback, -smartCardPIN, and -unattended.