Installing Virtual Server from the command line

This article from the Microsoft website is way too old and incomplete. I decided to write my own updated version.

For instructions on installing Virtual Server 2005, see Set up Virtual Server. You can also install Virtual Server from the command line using Msiexec.exe. For more information about Msiexec.exe, see "Command Line Options" at the Microsoft Web site.


Virtual Server usually comes wrapped up as a setup.exe. To use the following procedure and options, setup.exe must be unpacked to the MSI using the following command: setup.exe /c /t <destination folder>



msiexec.exe {/i|/a} "msifile" [ALLUSERS=value] [PIDKEY=value] [ADDLOCAL=[VirtualServer],[VMRCClient],[DevAndDoc],[VSWebApp]] [SERVICESSTARTUPMANUAL=value] [WEBSITEDEFAULTPORT=value] [CONFIGUREIISFORDELEGATION=value] [OPENFIREWALL=value] [USERNAME=value] [COMPANYNAME=value] [{INSTALLDIR=value|TARGETDIR=value}] [ALLUSERS=value] [NOSUMMARY=value] [/qb | /qn | /qr | /qf] [/l logfile]



Installs Virtual Server. You can use /x to uninstall Virtual Server.

Applies the administrative installation option. Installs Virtual Server on the network.

Sets the user interface level as shown in the following table.



q or qn

No user interface


Basic user interface


Reduced user interface


Full user interface

For more information about the user interface levels, see "Command Line Options" at the Microsoft Web site.

/l logfile

Specifies the path to the log file.


Specifies the unique product key number required to perform the installation. Do not use dashes when typing the number.


Specifies what components of Virtual Server must be installed. Options are:

·          VirtualServer: Virtual Server Service

·          VMRCClient: Virtual Machine Remote Control Client

·          DevAndDoc: Documentation and Developer Resources

·          VsWebApp: Virtual Server Web Application


Set to 1 for manual Virtual Server services startup. The default is 0.


Specifies the port for the Administration Website.


Specifies under which credentials the Virtual Server Administration Website must run.

0 – (default) Configure the Administration Website to always run as the authenticated user (Recommended for most users)

1 – Configure the Administration Website to always run as the Local System account (Required for constrained delegation)


Set to 1 to configure Virtual Server exceptions in Windows Firewall


Specifies a custom folder in which to install the program. If you do not include this parameter, the program is installed in \Program files.


Specifies a location in which to install the Virtual Server installation package when using the administrative installation (/a) option. The package’s data files are uncompressed in this location.


Determines what users see in the Start menu and in Add or Remove Programs. If ALLUSERS is not set, the installer does a per-machine installation. If ALLUSERS is set to an empty string (ALLUSERS=""), the installer does a per-user installation. In all cases the installer uses folders in the "All Users" profile.


If this value is set to 1, the summary page will not be displayed. The /qn option will also suppress the summary page.



The following example shows how to perform an unattended installation and make the program accessible to all users on the computer. An unattended installation means the Setup program runs without prompting you for input.

Msiexec.exe /i "Virtual Server 2005 Install.msi" PIDKEY=PID key number /qb

Deploying Virtual Server using Group Policy requires using the administrative installation option (/a) along with the TARGETDIR option. For example:

Msiexec.exe /a "Virtual Server 2005 Install.msi" PIDKEY=PID key number TARGETDIR=Installation folder’s network path /qb

The following example deploys Virtual Server without the web administration interface and creating a log file:

Msiexec /I "Virtual Server 2005 Install.msi" /L*v %SystemRoot%\Temp\VSInstall.log ADDLOCAL=VirtualServer,VMRCClient,DevAndDoc /qb-

The following table provides a formatting legend for the command-line information.




Information that the user must supply


Elements that the user must type exactly as shown

Ellipsis (…)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

This entry was posted in Virtual Server. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s