An electronic software distribution system is designed to efficiently move software to many different computers over slow or fast network connections. The following section provides information and instructions to help you deploy your MED-V workspace throughout your enterprise by using a software distribution system.

Whichever software distribution solution that you use, you must be familiar with the requirements of your particular solution. If you are using System Center Configuration Manager 2007 R2 or a later version, see the Configuration Manager Documentation Library in the Microsoft Technical Library (
If you are using System Center Configuration Manager 2007 SP2 and your MED-V workspaces are configured to operate in NAT mode, the virtual machines are classified as Internet-based clients and cannot find the closest distribution points from which to download content. The hotfix to improve the functionality for VMs that are managed by MED-V ( adds new functionality to virtual machines that are managed by MED-V and that are configured to operate in NAT mode. The new functionality lets virtual machines access the closest distribution points. Therefore, the administrator can manage the virtual machine and the host computer in the same manner. This hotfix must be installed first on the site server and then on the client.The update is publically available. However, you might be prompted to accept an agreement for Microsoft Services. Follow the prompts on the successive webpages to retrieve this hotfix.

You can also deploy the MED-V components together by using a batch file, but this requires a restart after the installation of Windows Virtual PC. To bypass this requirement, you can specify a single restart after all of the components are installed. The single restart also automatically starts MED-V because the MED-V workspace installation places an entry in the RUNKEY.

To deploy a MED-V workspace by using a software distribution system

  1. Define a group of computers and users in the electronic software distribution system as the target set of computers/users.

  2. Create packages for each Microsoft installation file that needs to be distributed. The following are the required files and the order in which they must be installed:

    1. Windows Virtual PC – if not already installed (a computer restart is required). For more information, see Configure Installation Prerequisites.

    2. Windows Virtual PC Additions and Updates – if not already installed. For more information, see Configure Installation Prerequisites.

    3. MED-V Host Agent Installation File – installs the Host Agent (MED-V_HostAgent_Setup installation file). For more information, see How to Manually Install the MED-V Host Agent.

      Close Internet Explorer before you install the MED-V Host Agent, otherwise conflicts can occur later with URL redirection. You can also do this by specifying a computer restart during a distribution.
    4. MED-V Workspace Installer, VHD, and Setup Executable – created in the MED-V Workspace Packager. For more information, see Create a MED-V Workspace Package.

      The compressed virtual hard disk file (.medv) and the Setup executable program (setup.exe) must be in the same folder as the MED-V workspace installer. Then, install the MED-V workspace installer by running setup.exe.
      Because problems can occur when you install MED-V from a network location, we recommend that you copy the MED-V workspace setup files locally and then run setup.exe.
  3. Configure the packages to run in silent mode (no user interaction is required).

    Running in silent mode eliminates the prompt to close Internet Explorer if it is running and the prompt to start the MED-V Host Agent. Both actions are performed when the computer is restarted.

    Installation of Windows Virtual PC requires you to restart the computer. You can create a single installation process and install all the components at the same time if you suppress the restart and ignore the prerequisites necessary for MED-V to install. You can also do this by using command-line arguments. For an example of these arguments, see To install the MED-V components by using a batch file. MED-V automatically starts when the computer is restarted.
  4. Install MED-V and its components before installing Windows Virtual PC. See the example batch file later in this topic.

    Select the IGNORE_PREREQUISITES option as shown in the example batch file so that the MED-V components can be installed prior to the required VPC components. Install the MED-V components in this order to allow for the single restart.
  5. Identify any other requirements necessary for the installation and for your software distribution system, such as target platforms and the free disk space.

  6. Assign the packages to the target set of computers/users.

    As computers are running, the software distribution system client recognizes that new packages are available and begins to install the packages per the definition and requirements. The installations should run sequentially in silent. We recommend that this is performed as a single process that does not require a restart until all the packages are installed.

  7. After the installations are complete, restart the updated computers.

    Depending on the software distribution system, you can schedule a restart of the computer or the end users can restart the computers manually during their regular work. After the computer is restarted, MED-V automatically starts after an end user logs on. When MED-V starts for the first time, it runs first time setup.

First time setup starts and might take several minutes to finish, depending on the size of the virtual hard disk that you specified and the number of policies applied to the MED-V workspace on startup. The end user can track the progress by watching the MED-V icon in the notification area. For more information about first time setup, see MED-V 2.0 Deployment Overview.

To install the MED-V workspace by using a batch file

  • Run the installation at a command prompt with administrative credentials.

  • Deploy each component to a single directory. If run from a network share, a longer time is required to decompress the .medv file.

  • As a best practice, specify that Windows Virtual PC and the Windows Virtual PC hotfix are installed after the MED-V Host Agent and the MED-V workspace package files. This means that Windows Update will not cause any interference with the installation process by requiring a restart.

  • Restart the computer after the batch file is finished.

After the restart, the user is prompted to run first time setup and complete the configuration of MED-V.

The following example, with the specified arguments, shows how to install 64-bit MED-V components in a single process:

Argument Description


Prevents the installation of Windows Virtual PC and the Windows Virtual PC update from restarting the host computer.


Installs the MED-V components in quiet mode without user interaction.


Installs the MED-V components without a user interface.


Installs without checking for Windows Virtual PC.

Only specify this argument if you are installing Windows Virtual PC as part of this installation.


Forces the installation of the MED-V workspace and prevents any prompts that it might generate.


  Copy Code
:: Install MED-V and the Pre-requisites

:: Install the MED-V Host Agent: install in quiet mode, ignore that Windows Virtual PC is not installed completely, and log results
start /WAIT .\MED-V_HostAgent_Setup.exe /qn IGNORE_PREREQUISITES=1 /l* %TEMP%\MEDVhost.log

:: Install the MED-V Workspace: install in quiet mode, Overwrite the VHD if it already exists, and log results
start /WAIT .\setup.exe /qn OVERWRITEVHD=1 /l* %TEMP%\MEDVworkspace.log

:: Install Windows Virtual PC: install in quiet mode and do not reboot
start /WAIT wusa.exe Windows6.1-KB958559-x64.msu /norestart /quiet

:: Install Windows Virtual PC patch to support non-HAV: install in quiet mode and do not reboot
wusa.exe Windows6.1-KB977206-x64.msu /norestart /quiet

:: After successful installation of the above components, a reboot of the host computer is required to complete installation.

See Also