Close this search box.

ConfigMgr 2012: Always including certain files in your Boot Images


Back in the ConfigMgr 2007 days, I wrote a similar blog called ConfigMgr OSD: Always including certain files in your Boot Images -think Trace32. I figured it was time to create a similar one for ConfigMgr 2012 since some things have changed. Even though CMTrace is now included in the boot image by default, there are still a few other utilities that I find useful to inject. Plus, I do not like the fact that CMTrace is not in the path and you have to locate it in order to launch it (i.e. more typing from a command prompt). Other things like your company’s background image is also nice to include as well.
After making the following changes, any time a boot image is generated (regardless of who does it), the files that you want will always be there. First, on the Primary Site server, locate a file called osdinjection.xml and open it with Notepad (or your favorite editor). It will be located in the ConfigMgr installation directory\bin\x64. This file controls which files get injected into the WinPE Boot Images. There is a section for each platform. However, the two common platforms are x86 <Architecture imgArch=”i386”> and x64 <Architecture imgArch=”x64”>. Underneath each of these sections, there will be a section for WPE, WDT and SCCM. I add my additions under the SCCM section. So, for including CMTrace in the Windows\System32 directory, you would add the following under the i386-SCCM section:

<File name="CMTrace.exe">

Make sure to include it before the closing file list tag </Filelist> and save the file. Also, it is a good idea to make a backup of this file before editing it just in case something happens to the formatting or a tag accidentally gets deleted. If the file gets corrupt, then all future Boot Images creations will fail. For the x64 boot image, add the following under the x64-SCCM section:

<File name="CMTrace.exe">

Since both architectures of CMTrace.exe are already in the source file locations there is nothing else that needs to be done for these files. Keep in mind for x64 Boot Images; you will need to use x64 executable files since there is not a WOW 32 bit subsystem in WinPE x64.
Let say you want to increase the log size and history from the default for bare metal builds to 5 MB and 5 roll over logs. Using Notepad, create a file called smsts.ini with the following contents:


Save the file in the ConfigMgr installation directory\OSD\bin\i386. Next, we need to update both the i386 and x64 SCCM sections with the following:
Place the following under both the imgArch=”i386″ and imgArch=”x64″, SCCM sections:


Since the ini file is not platform specific, we can use the same file in both boot images and do not need to create two separate files.
If you always want to include your company’s background image in your boot images, simply rename it to winpe.jpg and copy it (replacing the existing winpe.jpg) into the ConfigMgr installation directory\OSD\bin\i386 directory. Future upgrades and service packs may over write these files (including osdinjection.xml), so be sure to add it to your upgrade testing check list.
Add any other scripts, tools or utilities to your boot images using the above process (as long as they do not change frequently). This prevents the need for having a reference package for WinPE stages. It is best if they are small in size, otherwise your boot images will balloon in size.
Originally posted on


The FORRESTER WAVE™: End-User Experience Management, Q3 2022

The FORRESTER WAVE™: End-User Experience Management, Q3 2022