long story short - grab a free virtualization software such as virtualboxThanks abbodi86, could you explain how it's done? I don't think I've ever used this procedure.
create a virtual machine with .vhdx drive
install OS from iso
when you're about to go into OOBE after setup completes, hit CTRL+SHIFT+F3.
then after some time you will log in as administrator, with a sysprep windows visible - don't close it yet
run Windows Update as normal, perform reboot, dism cleanup if you wish
then set sysprep to enter OOBE, tick generalize and shutdown option to shutdown.
when all is complete you can then use vhdx drive - mount it directly in drive manager as read only and assignt it a letter
use dism /Capture-Image /Compress:max /ImageFile:d:\your_wim_file.wim /CaptureDir:<letter of vhdx drive>:\ /Name:"My super Windows"
this is applicable for single edition, if you have multi edition images you need to repeat that for each image....
