Create Hyper-V VHD in Seconds With WAIK WIM2VHD.WSF   2 comments

There are several ways to install a VM simple create and install OS. Or with SCVMM 2012 Winking smile 

But If you want to do it fast and you don’t like the Image thing witch I don’t like. then there is a solution. In under the 3 minutes I create a Fresh installed Windows 2008R2 SP1 Server for Hyper-V.

How ? with an unattend install Create an XML put in your stuff and you are ready to go.

But there is more, Choose the right tools there are multiple ways to do this. I show you how to use the WAIK tools. in the WAIK tools there is this little script WIM2VHD.WSF this can do magic for you.

First Install the WAIK 3.1 Version this is the latest version till now. Download the 3.0 WAIK and update it with the waik_supplement_en-us this will make the version 3.0 <> 3.1

The ISO can be downloaded from the following link:

Installation Instructions

The ISO does not contain instructions for installation.  More information on the update can be found at the following location:

To install the updated WINPE you copy the contents of the ISO over top of the following directory:

C:\Program Files\Windows AIK\Tools\PETools image

You should choose to overwrite the files.  It basically replaces all the WINPE specific files and Optional Components (OC’S). 

ConfigMgr and Microsoft Deployment Toolkit Information



C:\Program Files\Windows AIK\image

Now we start up the WIM2VHD.WSF

And using the Parameters :

where is your WIM file on the Source :


Source Files


What is your version


The VHD Name


And the unattend file used for installation




So with this I have a complete unatted install in just under de 2 min. Yes then the image is ready to use but the OS needs to setup.

With a little Powershell Script I create a auto VM create and startup. You can adjust this anyway you like. Just for testing.



Type the Virtual Machine’s name: TEST01
How much memory to assign? In MB: 4096
How many CPUs to assign? Integer Number: 4

Virtual Machine TEST01 has been successfully created
Start and Connect to  Type [Y]ES or [N]O: So with this I have a complete unatted install in just under de 2 min. Yes then the image is ready to use but the OS needs to setup.

This takes also about 5 Min depends on the unattend.xml if you do a lot of after config then it needs more time




2 responses to “Create Hyper-V VHD in Seconds With WAIK WIM2VHD.WSF

Subscribe to comments with RSS.

  1. Wow nice post!

    I have a few questions..
    1) Can you please post the power shell script?
    2) How I can use the xml file to insert to the domain with sysprep?
    3) The sccm have a hole procedure after the deployment of the win how can I do the same with the vhd?
    4) How I can automatic run commands after the sysprep

    Thanks in advance

    • all the tools are free on the internet. the WAIK holds the scripts. download waik and intall the kit and you will haven the scripts.
      the win2vhd is only for creating the vhd.

      Sccm is a different way to deploy a OS and can do much more than the wim2vhd but you can create a unattended xml with run once commands in it.

      see the deployment forums on teched to get more info about this.

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

  • Twitter

  • Advertisements
    %d bloggers like this: