If you are having issues with initial boot after restoring a Winclone image to new hardware, you can inject basic drivers into the Winclone image using the DISM command line tool in Windows 10. This only works if Windows has been sysprep’ed prior to imaging. Below is step by step instructions:
- In macOS on the new hardware, download the current support software in Boot Camp Assistant. Select “Download Windows Support Software” in the Action menu. This will create a folder WindowsSupport folder on the desktop. Copy it to a FAT formatted USB drive.
- Control-click on the Winclone image and select “Show Package Contents”. Copy the Windows.wim file to the FAT formatted USB drive as well. You may want to create a backup copy of the Windows.wim as well since it will be related / modified.
- On a Windows 10 PC or virtual machine, insert the FAT formatted USB drive.
- Determine the index of the edition of Windows to inject the driver into.
dism /Get-Wiminfo /WimFile:Z:\Windows.wim
- Mount the WIM image from the USB drive by creating a folder at the root of the C drive, then mounting the WIM using dism. Note that the following example, Z: is the driver letter of the USB drive and the Windows.wim file is at the top of the Z: drive. Make sure to change number in /index:1 to the correct index of the edition of Windows that you are injecting the driver.
dism /Mount-Wim /WimFile:Z:\Windows.wim /index:1 /MountDir:C:\test
- Inject the drivers from the $WinPEDriver$ in the Windows Support software:
dism /Add-driver /Image:C:\test /Driver:Z:\WindowsSupport\$WinPEDriver$ /Recurse
- Unmount the WIM file:
dism /unmount-image /mountdir:c:\test /Commit
- Copy the newly modified Windows.wim back to the original Windows.wim file in the Winclone image.
- Restore the Winclone image.