If you have a bunch of images that you maintain to servers and workstations that you deploy through a WDS (Windows Deployment Server) then you have to opportunity maintain the Image in a Hyper-V server and then convert the VHD(x) file to a *.Wim file in no time with this script and then import the *.Wim-file into your WDS server without doing a Capture of the VM in Hyper-V.

Just run the Script in PowerShell and add the file paths when the script ask for them, and the conversion will go like a charm of all the VHD(X) files located in that folder path you provide. 

Convert VHDx to WIM.ps1