Capture and Deploy Image Without Sysprep

In some cases, the administrator needs to capture the Windows image installed on the reference computer without using Sysprep. In our case, this turned out to be necessary due to the fact that the rather old legacy program is installed on the computer, which is installed and linked to several local user profiles during deploying. If you try to capture the image of such a computer using sysprep, then this old program doesn’t start after deploying the OS image to any computer manually via MDT/SCCM (when using sysprep, some program settings and local profiles are deleted). That is why we needed to use another way to get a reference WIM image of a computer without using sysprep.

You can use the ImageX utility to capture a WIM image of a computer. The ImageX.exe utility is not built-in Windows or WinPE tool. Therefore, you must first integrate the ImageX.exe utility to the Windows PE image (the utility is a part of the Microsoft Windows AIK utility pack) by copying it to the system32 folder of WinPE image (usually the image is in the boot.wim file).

DISM /Mount-WIM /WimFile:c:WinPE_x86WinPE.wim /Index:1 /MountDir:c:WinPE_x86Mount

Copy “C:Program FilesWindows AIKToolsx86ImageX.exe” C:WinPE_amd64MountWindowsSystem32

DISM /Unmount-WIM /MountDir:C:WinPE_x86Mount /Commit

wds capture image without sysprep

Suppose you have a reference computer from which you want to create an image for deployment on other computers in your company. The reference computer has the necessary drivers, programs installed and certain settings of the OS, environment and apps. Connect an additional disk to this computer or create a separate partition of at least the size of a system disk C:. If there is no free space, you can create a use shared network folder to save captured wim Windows image. To do this, the WinPe environment must have drivers for your network card, and the computer must be configured to automatically obtain an IP address from a DHCP server.

Boot your reference computer in Window PE (this can be a special bootable DVD or USB flash drive or an installation disk with a Windows 10 Install image).

On the installation start screen, press Shift + F10. A command prompt window should open. Start the capture from the C: drive and save the OS image to the second local drive using the command:

imagex.exe /capture C: D:win10custom.wim "Windows 10 Custom Image" /compress maximum

mdt capture image without sysprep

Maximum compression (attribute /compress maximum) allows to reduce image size, but the capture takes longer than with fast compression. The speed of unpacking such an image during deployment process is almost independent of the type of compression.

You can copy the image not to an additional hard disk, but to a shared folder on the server over the LAN, for this you need to connect it with the command:

net use u: wds1wimshare /user:contosoadmin "pa$$word"

Capturing the image is complete, now you can boot your computer in normal mode and you will see that the file win10custom.wim has appeared on the mapped drive. Now you can upload this file to your WDS server or use as a backup copy of the reference computer.

The resulting wim image can be included in the Windows install media by copying it to the sources folder with the name install.wim, i.e., overwriting the standard image. If you immediately create a Windows boot disk and start the installation, then you will receive a copy of the OS system of your reference computer.

You can also apply your image to a computer with the command:

imagex E:install.wim /apply "Windows 10 Custom Image" D:

dism capture image

If you are using WinPE 2.0 or WinPE 3.0 to capture your PC images (.wim files) and deploy them you have probably run into a little problem when trying to deploy an image of Windows 7 or Windows 10 when not first running sysprep. The problem is that if you try to re-deploy an image of a nonsysprepped image of Vista or 7 that the BootMGR will be broken. Follow the steps below to fix this problem.

Step 1

We assume you have captured your image already and are ready for deployment. Go ahead and boot up your image deployment software (WinPE 2.0 or WinPE 3.0).

Step 2

In our other articles we describe how to use DiskPart and also avoiding the hidden partition before deploying a new image. We suggest reading them.

Step 3

After you have deployed your non-sysprepped image you need to run the following commands: (I have a batch file I use to do this).

bcdedit /set {default} device partition=c:

bcdedit /set {default} osdevice partition=c:

bcdedit /set {bootmgr} device partition=c:

Step 4

This will fix the BOOTMGR problem when deploying a non-syprepped image in Win 10, 8.1 or Win 7. Enjoy!

  1. Posted by APagano
  2. Posted by Mike
  3. Posted by JazziJessi
  4. Posted by Haxcid
  5. Posted by Clark
  6. Posted by Corey
  7. Posted by bithead

Add Your Comment