«

»

Nov 24 2010

VMware View 4.5 Command Line Usage

Advertisement

In most cases administrators will automate the installation of the VMware View Client. It is important to know the command line parameters and features available to customise the deployment. Below you will find a run down of almost all properties available do deploy and execute View components. Some parameters and features are available in the documentation but some others are undocumented. For the undocumented items you may use it on your own risk as they are not supported by VMware.

 

VMware View Client 4.5.0 command line usage

Launching commands for View Client. 

-desktopName XXX Desktop to autostart
-domainName XXX Domain for server login
-file XXX File with additional command line parameters
-languageId XXX LCID of language to use (if available), e.g. 0×409 for English
-nonInteractive Suppress error message boxes for fully scripted startup
-password XXX Password for server login
-smartCardPIN XXX PIN for smart card login
-desktopProtocol XXX Attempt to use the specified desktop display protocol
-desktopLayout XXX Specify desktop screen size (e.g. fullscreen, multimonitor, windowLarge, or windowSmall)
-serverURL XXX URL for the View Connection Server
-logInAsCurrentUser XXX Log in as current user (true or false)
-userName XXX User name for server login
-unattended Start in unattended mode. Connects to the entitled desktop without user interaction
-connectUSBOnStartup XXX Connect all USB devices to a desktop when it is launched (true or false)
-connectUSBOnInsert XXX Connect a USB device to the foreground desktop when the device is plugged in (true or false)
-printEnvironmentInfo Print information about the system
-rollback Rolls back a check out (need -desktopName)
-standalone UNSUPPORTED: To start an additional client instance for test
-confirmRollback Confirm rollback operation in non-interactive mode
-? Show this help

 

Install Properties:

INSTALLDIR=%ProgramFiles%\VMware, Inc.\VMware View\Client
VDM_SERVER=<IP-Address> or FQDN
DESKTOP_SHORTCUT=0 (0=Do not create shortcut on desktop, 1=Create shortcut)
QUICKLAUNCH_SHORTCUT=0 (0=Do not create quick launch shortcut, 1=Create shortcut)
STARTMENU_SHORTCUT=0 (0=Do not create start menu shortcut, 1=Create shortcut)
REBOOT="ReallySuppress" (Does not reboot after installation)

Beyond the properties it is also possible to select the features that will be installed during the installation process. The features names are: Core, MVDI, ThinPrint, TSSO, USB. The ‘Core’ feature is mandatory. Optionally you may select ALL to install all features available.

ADDLOCAL=Core, MVDI, ThinPrint, TSSO, USB or ALL

 

Legend:
Core = Essential components required
MVDI = Local Mode
ThinPrint = Print redirection
TSSO = Single Sign-On
USB =USB Redirection

 

Examples:

VMware-viewclient-x86_64-4.5.0-293049.exe /S /V /qn DESKTOP_SHORTCUT=0 VDM_SERVER={server_name} INSTALLDIR="C:\Program Files\VMware\VMware View\Client" /l C:\Logs \VMware_Client45.log REBOOT=Reallysupress

VMware-viewclient-x86_64-4.5.0-293049.exe /s /v"/qn VDM_SERVER={server_name}ADDLOCAL=All"

VMware-viewclient-x86_64-4.5.0-293049.exe /s /v /qn RebootYesNo="No" REBOOT="ReallySuppress" VDM_SERVER={server_name} ADDLOCAL=Core,TSSO,USB DESKTOP_SHORTCUT=1 STARTMENU_SHORTCUT=1

 

For silent installs is is important to make sure the user logged has elevated privileges to install the client. Using Group Policies you should change the Local Computer and User Policies to use “Always Install with elevated privileges” for Windows Installer.

 

Local Computer Policy->Computer Configuration->Administrative Templates->Windows Installer->Always Installwith elevated privileges
Local Computer Policy->User Configuration->Administrative Templates->Windows Installer->Always Installwith elevated privileges

 

Option names are case insensitive.

 

 

VMware View Agent 4.5 command line usage

View Agent can also be heavily customised and allows you to select what components should be installed.

/a performs an administrative install
/a <full path to existing administrative install> patches an existing administrative install
/s hides the initialization dialog. For silent mode, use /s /v /qn
/qb
display the wizard pages in a noninteractive, automated installation
/v indicates parameters to pass to the installer
/c cleans out installation registration information
/l performs detailed logging
/l <fullpath to log file> performs detailed logging
/l*v <fullpath to log file>

 

Install Properties:

DESKTOP_SHORTCUT=0 (0=Do not create shortcut on desktop, 1=Create shortcut)
VDM_SERVER=<IP-Address> or FQDN
VDM_SERVER_USERNAME=admin.companydomain.com
VDM_SERVER_PASSWORD=secret
INSTALLDIR= %ProgramFiles%\VMware, Inc.\VMware View\Agent
(Specifies an alternative installation path for the View component)
RDPCHOICE=0 (0=Leave RDP settings as they are, 1=Enable RDP)
REBOOT="ReallySuppress" (Does not reboot after installation)

Beyond the properties it is also possible to select the features that will be installed during the installation process. The features names are: Core, HPRGS, SVIAgent, ThinPrint, ThinPrintPCoIP, PCoIP, VMVideo, VmwAudio, SmartCard, USB, VPA, VMCI. The ‘Core’ feature is mandatory. Optionally you may select ALL to install all features available.

ADDLOCAL=Core,GINA,HPRGS,SVIAgent,USB,USB32,PCoIP,ThinPrint or ALL

Utilising the /v parameters it is possible to pass commands to the installer

/vINSTALL_TERAAUDIO=1” UNSUPPORTED
(this command installs a PCoIP 2-way bidirectional audio driver)
/vVDM_VC_MANAGED_AGENT=0”
(0=Unmanaged, 1=Managed )

The installation creates:

  • The View Agent installation log (%TEMP%\vminst.log_date_timestamp)
  • The MSI installation log (%TEMP%\vmmsi.log_date_timestamp)

    Legend:
    Core = Essential components required
    GINA = GINA chaining
    MVDI = Local Mode
    TSSO = Single Sign-On
    USB =USB Redirection
    HPRGS = HPRGS display protocol
    SVIAgent = VMware View Composer
    ThinPrint = Print redirection
    ThinPrintPCoIP = Print redirection in PCoIP
    PCoIP = PCoIP display protocol
    VMVideo = ?
    VmwAudio = ?
    SmartCard = Hum….. don’t need explanation
    VPA = ?
    VMC = Allow disabling of VMCI devices (http://www.vmware.com/support/developer/vmci-sdk/)

     

      Examples:

    VMware-viewagent-4.5.0-293049.exe /s /v”/qn VDM_VC_MANAGED_AGENT=1 ADDLOCAL=ALL”

    VMware-viewagent-4.5.0-293049.exe /s /v"/qn REBOOT=Reallysupress ADDLOCAL=Core,GINA,HPRGS,SVIAgent,USB,USB32 VDM_SERVER={server_name} /l*v ""%TEMP%\vmmsi.log"""

    VMware-viewagent-4.5.0-293049.exe /s /v"/qn VDM_VC_MANAGED_AGENT=0 VDM_SERVER_NAME={server_name} VDM_SERVER_USERNAME=admin.companydomain.com VDM_SERVER_PASSWORD=secret ADDLOCAL=core,GINA,ThinPrint,USB"

     

     

    View Connection Server

    View Connection Server does not offer many features or properties but it is possible to select the basic options for automated installations.

    INSTALLDIR= %ProgramFiles%\VMware, Inc.\VMware View\Server
    VDM_SERVER_INSTANCE_TYPE=1
    (1=standard, 2=replica, 3=security server, 4=transfer server)
    FWCHOICE=1 (Set to 1 to configure firewall or 2 to skip it)

    The following properties are only applicable to View Replica Servers (VDM_SERVER_INSTANCE_TYPE=2)
    ADAM_PRIMARY_NAME=<IP-Address> or FQDN
    ADAM_PRIMARY_PORT=Port Number

     

    Example:

    VMware-viewconnectionserver-4.5.0-293049.exe /s /v"/qn VDM_SERVER_INSTANCE_TYPE=1"

    VMware-viewconnectionserver-4.5.0-293049.exe /s /v"/qn VDM_SERVER_INSTANCE_TYPE=2 ADAM_PRIMARY_NAME={server_name}"

     

    There are also installation features and options available for the Security Server, View Composer and Transfers Server but I will cover those in a future post with some additional information about Transfer Server.

    Similar Posts:

      None Found

    Permanent link to this article: http://myvirtualcloud.net/?p=1368

    2 comments

    6 pings

    1. Mohit Kshirsagar

      Hi there,

      Firstly this blog is very helpful and I appreciate the way you have taken efforts to put this together. I have similar approach in documentation. I (kind of) create cheat sheets.

      I am trying to do a silent install of the VMware View Composer. However, I don’t know where to find the command line parameters (I believe its not documented). It would be great if you could share the VMware View Composer parameters.

      Thanks

      Mohit

    2. Andre Leibovici

      @Mohit Kshirsagar
      Here is the link for How to do Silent Install with View Composer
      http://myvirtualcloud.net/?p=3892

      Thanks

    1. Printing Architectures for VDI - cliff davies cliff davies

      [...] The first method is actually not to install the ThinPrint AddOn. Refer to my article VMware View 4.5 Command Line Usage to understand how to install View agent without ThinPrint [...]

    2. - Cliff Davies

      [...] Read the article I previously published at VMware View 4.5 Command Line Usage [...]

    3. Virtualizing the VMware View Client using ThinApp | VMware End-User Computing Blog - VMware Blogs

      [...] the  VMware View Command Line Usage options provided by Andre Leibovici. The command-line options allow you to customize the View [...]

    4. Virtualizing the VMware View Client using ThinApp | VMware ThinApp Blog - VMware Blogs

      [...] the VMware View Command Line Usage options provided by Andre Leibovici. The command-line options allow you to customize the View [...]

    5. myvirtualcloud.net » VMware View Composer Silent Install

      [...] visit VMware View 4.5 Command Line Usage for additional installation parameters for other VMware View [...]

    6. How to Launch Horizon View Standalone sessions via vmware-view URI » myvirtualcloud.net

      [...] VMware is somewhat well known at this point in time. I blogged about it a while back in my article VMware View 4.5 Command Line Usage.   However, the ‘-standalone‘ switch can only be issued from the Windows [...]

    Leave a Reply