If you are installing VMware Tools in multiple virtual machines with Windows guest operating systems, you can automate its installation and specify options for the components to include or exclude.

Before you begin

  • Power on the virtual machine.

  • Log in to the guest operating system as an administrator.

  • If you plan to use the setup.exe command at the command line to run the VMware Tools installation, edit the virtual machine settings to connect the virtual CD/DVD drive to the VMware Tools ISO image. In VMware Workstation and Player, the windows.iso file is on the host in the directory where you installed Workstation or Player.

  • If you plan to use the setup.exe command at the command line to run the VMware Tools installation, edit the virtual machine settings to connect the virtual CD/DVD drive to the VMware Tools ISO image. In VMware Workstation and Player, the windows.iso file is on the host in the directory where you installed Workstation or Player.

  • If you plan to use MSI arguments to specify options regarding the silent installation, go to the Windows Installer page on the MSDN Web site to familiarize yourself with the syntax. You can use these arguments with the setup.exe command or place them in the vCenter Server dialog box for automatic installations and upgrades.

  • To prevent some VMware Tools components from being installed, familiarize yourself with the VMware Tools component names so that you can specify which components to exclude. See Names of VMware Tools Components Used in Silent Installations.

  • If you are installing VMware Tools from a beta or release candidate of a VMware product, suppress prompts about unsigned drivers. See Suppress Prompts About Unsigned Drivers on Windows Operating Systems Before Vista and Add VMware as a Trusted Publisher to Suppress Driver Prompts.

Procedure

  1. In the vSphere Web Client inventory, select the host, cluster, or datacenter and click the Virtual Machines tab.
  2. Select the virtual machines, right-click and select All vCenter Actions > Guest OS > Install/Upgrade VMware Tools.
  3. Provide the installation or upgrade configuration information.
  4. To add MSI arguments or to exclude VMware Tools components during the installation process, add the arguments and options to the setup.exe command in the Advanced Options text box.
    1. Type the setup.exe command with any MSI arguments.
      setup.exe /S /v "/qn msi_args"

      To exclude some of the VMware Tools components, use the ADDLOCAL and REMOVE options.

      setup.exe /S /v "/qn msi_args ADDLOCAL=ALL REMOVE=component"

      For example, this command performs a silent installation and suppresses rebooting when installation is complete. This command also installs all components except the shared folders component.

      setup.exe /S /v "/qn REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs"

      This example shows the same command, but with logging added.

      setup.exe /S /v "/qn /l*v ""%TEMP%\vmmsi.log"" REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs"