Convert *.VHDx to *.WIM files

Converting your VHD(x) files to *.Wim so you can deploy them with WDS have never been more easy.

 
 
 
 
 
4.1 Star
(10)
9,852 times
Add to favorites
Servers
7/21/2016
E-mail Twitter del.icio.us Digg Facebook
  • Server 2016 and Server 2019
    2 Posts | Last post August 29, 2019
    • Can this script be used on Windows Servers 2016 and 2019 or is there an update required? 
    • Hi Sir,
      
      I haven't testet the script on af Win2016 or Win2019, but i don't see any reason why it should not work.
  • Sysprep not required ??
    2 Posts | Last post August 29, 2019
    • Afternoon,
      
      Can you explain why there is no need to sysprep the VM.
      
      Does the powershell cmd automate this ??
      
      Many Thanks
      Colin
    • Hi Sir,
      
      I'm not to sure where it says that there is no need for Sysprep? - please tell where i wrote this?
      
      It is up to you if you want to Sysprep the Image or not before using the script to convert VHDX-files to WIM-files.
      
      You cannot make a Capture of a client/server with WDS without the client/server is Syspreped first, but this script don't cover WDS Capture function.
  • Dismount-WindowsImage failed
    2 Posts | Last post February 13, 2019
    • I get error code = 0xc1550115 
      Confirm
      The item at c:\Mount-Temp has children and te Recurse parameter was not specified.  If you continue, all children will be removed with the item.
      
      What is this error?  Will the wim still work?
    • Hi Sir.,
      
      If there has been done any changes to the mounted *.WIM file the changes will be comitted to the *.win with " /commit " in the following syntax - needs to run in elevated PS:
      
      DISM /Unmount-Wim /MountDir:ThePathToTheMount /Commit
      
      
  • Process hangs after choosing source and destination
    2 Posts | Last post April 23, 2018
    • Hi there,
      
      I am trying to use this script, running as administrator, and it gets to the point just after I choose the source and destination.
      
      It is showing this in the powershell window;
      
      Path : C:\Mount-Temp
      Online : False
      
      And it just sits there... I see that a .wim file is created in the folder I specified but it has a size of 0KB and as far as I can tell nothing is happening.
      
      Any ideas?
      
      Thanks
    • Hi Sir,
      
      Is the PowerShell process using CPU or Memory while running? (anything but Idle)?
      
      As far as i remembers the *.wim file don´t get populated in size before DISM is shutting down the Mount-Temp folder.
  • Error when running script
    2 Posts | Last post September 15, 2016
    • I have E:\Golden.vhdx
      I want to convert to .wim in same root directory
      
      I entered E:\Golden.vhdx
      I then entered E:\
      I then press Enter and after a few seconds red errors flash in PS window and window vanishes.
    • Hi,
      
      Fore some reason the computer cannot be domain-joined (haven´t had the time to figur out why).
      Please try to run the script in Elevated PS, and try to keep the to files (*.vhdx and *.wim) in to seperate folders like E:\Input and E:\Output :-)
  • Does the VM need to be syspreped before running this script?
    2 Posts | Last post July 21, 2016
    • As the title says does the VM need to be syspreped before running this script against its VHDx?
    • Hi Adam,
      No, there is no need for Sysprepping the VM and/or Templates.
      
      Please let me know if there is something I can do to make it better :-)