I’ve continued to fight a bunch of issues trying to get imaging to work the way I want it in SCCM 1511/1602. Well another issue I was running into was when capturing from an SCCM capture disc I would get Windows PE initialization failed with error code 0x80220014. Well what I discovered is this Microsoft Hotfix fixes the issue and is still an issue in SCCM Current Branch 1602.
I have been integrating MDT with SCCM for a long time and followed the below steps from Microsoft to fix the initializing issue when capturing using my MDT boot image. Below are the steps from Microsoft with a few notes and changes on how to do this with an existing MDT Boot image This must be done on a machine with Windows ADK for Windows 10 is installed.
Step 1: Preparation
- Extract the contents of the hotfix. For example, extract the contents to the %userprofile%\downloads folder.
- Start an elevated “Deployment and Imaging Tools Environment” command prompt.
Step 2: Prepare Windows PE
Create the Windows PE customization working directory, and then mount the image file. To do this, type the following commands, and then press Enter after each command:
dism /mount-wim /wimfile:”E:\Sources\Imaging\OS\MDT Boot images\MDT Boot image W10 64bit SP2\Winpe.wim” /index:1 /mountdir:E:\mount
Note: Point the /wimfile parameter to the winpe.wim you have been using that is having the boot problem. There will be an second WinPE.packagenumber.wim that SCCM creates from the winpe.wim. Leave it alone it will get updated when we update the distribution points. For the /mountdir parameter just create an folder somewhere as the mount directory, here I just created an mount folder at the root of E.
Step 3: Save schema.dat state
Back up the permissions that are applied to the existing schema.dat file before you replace it. To back up the file, type the following command, and then press Enter:
icacls E:\mount\Windows\System32\schema.dat /save “%temp%\AclFile”
Step 4: Update the schema.dat file
To replace the schema.dat file that has the updated version, you must take ownership of the file and grant permissions to the local administrators group. To do this, type the following commands, and then press Enter after each command:
takeown /F E:\mount\Windows\System32\schema.dat /A
icacls E:\mount\Windows\System32\schema.dat /grant BUILTIN\Administrators:(F)
xcopy “%userprofile%\Downloads\schema-x64.dat” E:\mount\Windows\System32\schema.dat /Y
Note: the Xcopy is assuming you extracted the hotfix in the downloads folder.
Step 5: Reset permissions and ownership
When the schema.dat file is replaced, the permissions saved in step 5 must be restored by running the following commands:
icacls E:\mount\Windows\System32\schema.dat /setowner “NT SERVICE\TrustedInstaller”
icacls E:\mount\Windows\System32\ /restore “%temp%\AclFile”
Step 6: Commit Windows PE changes
Commit the changes to the winpe.wim file. To do this, type the following command, and then press Enter:
dism /unmount-wim /mountdir:E:\mount /Commit
Step 7: Update Distribution points
Click update distribution points on the MDT boot image and then wait for drivers to be injected into your fixed boot image.
Step 8: Recreate capture media
If your doing this like me and using capture media make sure and recreate it so it uses your new boot image.