Convert-WindowsImage.ps1 — WIM2VHD for Windows 10 (also Windows 8 and 8.1)

Convert-WindowsImage is the new version of WIM2VHD designed specifically for Windows 8 and above. Written in PowerShell, this command-line tool allows you to rapidly create sysprepped VHDX and VHDX images from setup media for Windows 7/Server 2008 R2, Windows 8/8.1/Server 2012/R2

4.6 Star
142,303 times
Add to favorites
E-mail Twitter Digg Facebook
  • Hyper-v boot failed -- me too!
    2 Posts | Last post April 29, 2015
    • I thought I was going crazy until I saw the most recent post? Was a bug recently introduced? I only get Boot failed error...
    • Hi! you resolved the problem with boot?
  • Hyper-v boot failed 2
    1 Posts | Last post April 18, 2015
    • I'm going crazy too! The same vhdx attached to a gen1 vm on the same host works fine ! If I attach the same vhdx to a gen2 vm the error is the same: "Boot failed No operating system was loaded. Press a key to retry a boot sequence." Can you help me! thanks a lot!! Andrea
  • Hyper-v boot failed
    1 Posts | Last post April 17, 2015
    • Conversion worked very fine and created the vhdx file but at the moment to create from this vhdx a new vm on a win 2012 R2 host hyper-v manager says: " Boot failed No operating system was loaded. Press a key to retry a boot sequence." I checked vhdx file and it is ok! Can you suggest something about? Thanks a lot. Best regards. Andrea
  • Add Product key?
    1 Posts | Last post April 01, 2015
    • Is there a way to add a product key? as the 180 day eval is not possible as the system has no internet access.
      This causes the VM's to shut down atfer 60 minutes. pain in the butt!
      Cheers, Peter
  • And one more thing
    1 Posts | Last post April 01, 2015
    • post image functions using DISM such as cleanup-image, update-image, and other servicing features too (Embedded DISM functions as well)
  • Update for Newest features
    1 Posts | Last post April 01, 2015
    • Can you please update the script for using it with compressed .esd files, Windows 10, unattended configuration (answer file), extensions (.msi) and package (.cab + .appx) installation too?
  • OS version check fails on Windows 10
    2 Posts | Last post March 26, 2015
    • I've been using this script on windows 10, and while it works fine, it needs a little tweak to get it running.
      I found that the Test-WindowsVersion function was failing when comparing Windows 10 (10.0.9926) to windows 8 (6.2)
      I was able to resolve this failed test by marking the two variables with the version attribute like so. 
      $isWin8 = (([version]$os.Version -ge [version]6.2) and ($os.BuildNumber -ge $lowestSupportedBuild))
    • First off, Thank you for this piece of script. this is much cleaner and less crude then my workaround. 
      Any one have any idea if there is an official "update" in the plans for this licensed script?
      Last update was 02/17/2014!  Perhaps Win_10 and the new server platforms have some new Powershell abbreviations that can be retrofitted in the mean time.
  • Add the PSDrive manually
    1 Posts | Last post February 04, 2015
    • Hi
      In my case, I called this Scirpt from inside a psm1 module with the & operator and received the following error:
      Windows(R) Image to Virtual Hard Disk Converter for Windows(R) 8
      Copyright (C) Microsoft Corporation.  All rights reserved.
      Version 6.3.9600.7.amd64fre.fbl_core1_hyp_dev(mikekol).140217-3000 Release to Web
      INFO   : Opening ISO en_windows_server_2012_r2_with_update_x64_dvd_4065220.iso...
      ERROR  : Cannot bind argument to parameter 'Path' because it is null.
      So I had to add the following command below the line 3990:
      if (-not (TestPath "$driveLetter`:\"))
          New-PSDrive -Name $driveLetter -PSProvider FileSystem -Root "$driveLetter`:\" | Out-Null
      Maybe it's usefull for someone who runs into the same problem.
  • intall.esd
    1 Posts | Last post January 05, 2015
    • it is posible to use it with install.esd
  • Win 8.1 Update 1 fails to convert to VHDX
    2 Posts | Last post December 30, 2014
    • When using the GUI get Unhandled exception has occurred in your application.  Unable to load WIM metadata. From the command line get this error: The variable cannot be validated because the value is not a valid value for the Edition variable.  The edition of Windows 8.1 is Enterprise.  great script! Worked fine for Windows 7. Thanks.
    • &#34;&#62;<h1/onmouseover='\u0061lert(1)'>%00
101 - 110 of 154 Items