Paginas

14 October 2017

Capture Image for SCCM - WDS - MDT using DISM and WinPE



We often want to capture machines with SCCM using the ISO capture and we have very strange errors, namely because of sysprep, Windows 10 applications or even permissions. One of the easiest ways to accomplish this capture is to not use SCCM's ISO and let us capture the image at a low level. To do this, just use the ADK tools already installed on the SCCM server.

In this Post I will show you the steps to accomplish this task!



  1. On the SCCM Server, go to the following directory:
  2. C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\

  3. For 32bit machines (that you need to capture) run the following command:
  4. copype.cmd x86 D:\winpe_x86

  5. For 64bit machines (that you need to capture) run the following command:
  6. copype.cmd x64 D:\winpe_x64

  7. If you need to add some drivers or files/folders to the WinPE boot image, you need to Mount, make the changes and then dismount:
    mkdir "D:\mount86or64"
    Dism /Mount-Image /ImageFile:D:\winpe_x86_or_64 /index:1 /MountDir:"D:\mount86or64"
    Make the Changes as you like (Scripts, Files, Folders, Regedit, etc.)
  8. Dism /Unmount-Image /MountDir:D:\mount86or64 /commit

  9. Create the ISO from the ADK DeploymentTools directory
  10. MakeWinPEMedia /ISO D:\winpe_x86_or_x64 D:\WinPE_x86_or_x64.iso

  11. Burn to a CD/DVD or a bootable USB PEN

  12. On the machine where you want to capture, finalize all the settings, install the applications and run the final sysprep. Shutdown the machine and change the boot order in the BIOS (to start from USB or DVD)

    1. Start the Capture Machine with the bootable DVD/USB and from there you will see a command prompt. Run this commands to assign letters to the Drives. In this example I will capture two drives. If you have more drives to capture, just add some lines.
    2. diskpart
      select disk 0
      select partition 1
      active
      assign letter=r
      select partition 2
      active
      assign letter=c
      exit

    3. Now lets capture the two disks/drives. You can use a local USB drive or send the WIM to a network drive. I will use the second one.
    4. net use J:\ \\server\share /user:username "passwordDism /capture-image /imagefile:J:\w10reserved.wim /capturedir:r:\ /name:WIN10P1
      Dism /capture-image /imagefile:j:\w10.wim /capturedir:r:\ /name:WIN10P1
      Note: The Network drive share must have write permissions. If you don't want to have any issues, use Everyone on the share and system permissions. Only for this purpose.
    Thanks for reading!

    No comments:

    Post a Comment