If you also use Windows XP on another computer, you can transfer that VHD file to the XP computer and mount it without having to run Virtual PC or Microsoft Virtual Server . You can install only a component of Microsoft Virtual Server and run a command from the command line.

NOTE: If you have applied a password to your VHD file using BitLocker in Windows 7, you CANNOT access your VHD file in Windows XP. You will be asked to format the drive.

Download Microsoft Virtual Server from

http://www.microsoft.com/downloads/details.aspx?FamilyId=BC49C7C8-4840-4E67-8DC4-1E6E218ACCE4&displaylang=en .

Start installing Microsoft Virtual Server by double-clicking on the setup.exe file. The initial Microsoft Virtual Server 2005 R2 SP1 Setup screen displays. Click the button next to Install Microsoft Virtual Server 2005 R2 SP1 .

MS Virtual Server initial setup screen - 1

The License Agreement displays. Select the I accept the terms in the license agreement radio button and click Next .

MS Virtual Server license agreement - 2

The Customer Information screen displays. Enter your User Name and Organization . The Product Key is automatically entered. Click Next .

Entering User Name and Organization - 3

On the Setup Type screen, select the Custom radio button and click Next .

Choosing the Setup Type - 4

On the Custom Setup screen, click on the button next to the first feature in the list, Virtual Server Service , and select This feature will not be available from the pop-up menu.

Specifying a feature to not be available - 5

Do the same thing for all the features except the VHD Mount feature. The Custom Setup screen should look like the following image. Click Next .

06_deselecting_all_but_vhd_mount - 6

The VHD Mount feature is ready to be installed. Click Install .

Setup is ready to install - 7

The progress of the installation process displays.

Installation progress - 8

When the Setup Complete screen displays, click Finish .

Setup is complete - 9

In Windows Explorer, navigate to the C:\Program Files\Microsoft Virtual Server directory. In the right pane, hold down the Shift key while right-clicking on the Vhdmount directory. Select Open Command Line Here from the pop-up menu.

Open command line here - 10

At the command prompt, enter the following line.

vhdmount /p /f <path to VHD file>

Replace “ ” with the location of the VHD file you want to attach. Press Enter . You should see a message indicating the Virtual Hard Disk was successfully plugged in.

NOTE: For information about the parameters for the vhdmount command, type vhdmount at the prompt and press Enter . A list of available parameters with descriptions displays.

11_command_to_mount_vhd_file - 11

In Windows Explorer, your VHD file displays as a hard drive with a drive letter.

VHD file displaying as a hard drive in Windows Explorer - 12

To detach your VHD file, enter the following line at the command prompt:

vhdmount /u <path to VHD file>

Again, replace “” with the location of your VHD file.

If you still have Windows Explorer open and your VHD selected, you will receive an error when you try to detach the VHD file. You must either select a different drive, or close Windows Explorer.

Failed to unplug the Virtual Hard Disk - 13

Once the VHD file is no longer being used, you can enter the detach command again and you should see a message indicating that the virtual hard disk has been successfully unplugged.

VHD file successfully unplugged - 14

This component of Microsoft Virtual Server is useful if you transfer files between a Windows 7 computer and a Windows XP computer. You can keep all your files in one portable file and easily access them on both operating systems.

  • How to Boot into Safe Mode in All Versions of Windows
  • How to Set Up a Windows XP Virtual Machine for Free
  • How to Reset Your Computer Password If You Lock Yourself Out
  • Transfer Files from Windows XP, Vista, 7 or 8 to Windows 10 using Windows Easy Transfer
  • How to Change the Clock To Military Time in Windows

Founder of Help Desk Geek and managing editor. He began blogging in 2007 and quit his job in 2010 to blog full-time. He has over 15 years of industry experience in IT and holds several technical certifications. Read Aseem’s Full Bio