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
November 24th, 2009 - 20:03
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
November 25th, 2009 - 02:04
Thanks Matt
. Thanks for pointing this out Matt!!!
Whoops sleepy me I guess
January 13th, 2010 - 15:00
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.
January 18th, 2010 - 16:51
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.