Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it a way to create a VHD virtual drive image from files in existing folder? I know that it can be done programmatically via .NET framework API, but maybe it's already exists a tool that can be run like

create my.vhd c:\my
share|improve this question
up vote 2 down vote accepted

Try to copy your folder for e.g. on an usb-stick, then use Disk2Vhd from Sysinternals.

Best regards.

share|improve this answer
This is ok, but for automated builds i will need to create additional partition :). Maybe it's something exists like folder2vhd? ^_^ – Eye of Hell Oct 15 '09 at 13:47
Maybe the nice guys from Sysinternals will extend Disk2Vhd with those function in a further release. May you suggest this feature on their site.<br> In the meantime your idea with an additional partition sounds good to me. – Phil Swiss Oct 15 '09 at 18:52

This article explains how to do this.

in short for windows 7/2008: go to computer management, click disk management, right click disk management, click create VHD, enter location. Select the disk, right click, initialize with MBR, right click "unallocated" string, click new simple volume, etc, map the drive letter.

Then copy your files and folder to the drive letter, once done, right click the disk (on the left side) and select detach VHD.

share|improve this answer
I guess that was mgorven that gave the answer of mounting the vhd in disk manager. didn't know one could do that so I learned something AND I fixed my problem! – user150698 Dec 22 '12 at 18:21
  1. Share the folder you want to create the drive from so that now it is a network folder (Right click on folder and choose share)

  2. Create a network drive from the folder you have shared with the button "Create Network Drive" at the top of the "My Computer" window (Win7)

share|improve this answer
That doesn't sound like a VHD. – Falcon Momot Sep 15 '15 at 21:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.