IThastobecool.com Geeks have opinions too!

2Nov/094

Creating a custom boot image for SCCM SP2 (WinPE 3.0)

Today I had to recreate my x86 boot image in my SCCM environment. I had just upgraded my testserver to SCCM SP2 and found that the old way of creating a boot image didn’t work anymore… seeing as SCCM SP2 uses DISM.exe instead of imagex and peimg. So I went looking for instructions on creating a custom SCCM SP2 image, but couldn’t found any, so here are the instructions :) .

1. Start the Deployment Tools Command prompt and enter the following command:

COPYPE.CMD x86 1 c:\WINPE

When you're working on a 64-bit WinPE image use "amd64" instead of "x86"

2. Mount the winpe.wim file to the mount dir that’s created automatically:

DISM /Mount-Wim /WIMFile:c:\winpe\winpe.wim /Index:1 /MountDir:C:\winpe\mount

3. Add the packages required by SCCM to the wim (again, if you’re working on 64-bit Windows PE substitute "x86" with "amd64")

DISM /Image:c:\winpe\mount /Add-Package /PackagePath:”C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-scripting.cab”

DISM /Image:c:\winpe\mount /Add-Package /PackagePath:”C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-wmi.cab”

After this step you can continue adding packages (such as winpe-hta.cab and winpe-mdac.cab) or custom files to the boot image. The 2 packages worked out above (Scripting and WMI) are required by SCCM, without these packages you will receive an error during updating your boot image to the distribution points.

4. Commit the changes to the WIM and unmount the WIM

DISM /Unmount-Wim /Mountdir:c:\winpe\mount /commit             (thank you for the correction Matt!, It appears as if I was quite sleepy when I wrote this post ;) )

5. Import your custom boot image into SCCM.

That’s it, just as simple as it was with the previous version of WAIK, only different commands :)

henk

About Henk Hofs

Junior Consultant at Login Consultants. Main focus: Windows infrastructures, applications, scripting, virtualization and automation. Specialization: Windows OS deployments (with technologies like MDT, SCCM and Altiris).
Comments (4) Trackbacks (1)
  1. Great Article – Only two things that are off.

    - When you do an x64 image you need to substitute “amd64″ in the commands rather than “x64″ as mentioned.

    - The command in step 4 should read: DISM /Unmount-Wim /MountDir:c:\winpe\mount /commit

  2. Thanks Matt :)
    Whoops sleepy me I guess :) . Thanks for pointing this out Matt!!!

  3. Followed this step by step. Got success with every step. Boot image still fails when adding to SCCM Boot Images. I dont know what gives. Next step is to start over with a clean install of SCCM and try the defaults again. The defaults worked the first time. When I deleted the boot images from SCCM it never let me use the defaults again.

  4. Can we not just use the prebuilt WIMs that come with SCCM SP2? They are installed to Program Files\Microsoft Configuration Manager\OSD\boot\i386.


Leave a comment