Adding Trace32 and Devcon to x86 and x64 WinPE

Trace32 is an awesome program; it helps me out in the tough times of SCCM Task Sequence failures. It’s also amazing to have on your PE image. Devcon too! It’s there for me when I can’t get the mass storage drivers quite right in my task sequence for Windows XP (I know, I’m sorry I still have a few…). Here’s how to find and add these tools to your WinPE image.

Downloads

Note: for the ‘official’ version of trace64 (renamed cmtrace), you must download SCCM 2012 and extract the x64 version from the x32 binary. Instructions here: Trace64 finally here to stay – But it is hidden.

Preparation

  1. Extract the following file from the Windows Driver Kit ISO: .\WDK\setuptools_x86fre_cab001.cab\_devcon.exe_00000
  2. Rename the file to devcon.exe and copy it to C:\temp\newtools\devcon32\.
  3. Extract the following file from the Windows Driver Kit ISO: .\WDK\setuptools_x64fre_cab001.cab\_devcon.exe_00000
  4. Rename the file to devcon.exe and copy it to C:\temp\newtools\devcon64\.
  5. Extract trace32 from the SCCM 2007 Toolkit V2 and copy it to C:\temp\newtools.
  6. Extract trace64 from the SCCM 2012 RC or download it from the unofficial source above (make sure to check the hash!), and copy it to C:\temp\newtools.
The final folder structure should look like this:
  • C:\temp\newtools
    • trace32.exe
    • trace64.exe
    • .\devcon32
      • devcon.exe
    • .\devcon64
      • devcon.exe

Process

  1. Create the following folder on your sccm server and copy the contents of C:\temp\newtools (including subfolders) to this folder:
    C:\Program Files (x86)\Microsoft Configuration Manager\OSD\extra
  2. On your SCCM server, backup then open the following file in a text editor:
    C:\Program Files (x86)\Microsoft Configuration Manager\bin\i386\osdinjection.xml
  3. Under the heading <Architecture imgArch=”i386″> then <FileList source=”SCCM”> add the following lines:
    <File name="trace32.exe">
    <LocaleNeeded>false</LocaleNeeded>
    <Source>extra</Source>
    <Destination>windows\system32</Destination>
    </File>
    <File name="devcon.exe">
    <LocaleNeeded>false</LocaleNeeded>
    <Source>extra\devcon32</Source>
    <Destination>windows\system32</Destination>
    </File>
  4. Under the heading <Architecture imgArch=”x64″> then <FileList source=”SCCM”> add the following lines:
    <File name="devcon.exe">
    <LocaleNeeded>false</LocaleNeeded>
    <Source>extra\devcon64</Source>
    <Destination>windows\system32</Destination>
    </File>
    <File name="trace64.exe">
    <LocaleNeeded>false</LocaleNeeded>
    <Source>extra</Source>
    <Destination>windows\system32</Destination>
    </File>
  5. Now, select your boot images then click “Update Deployment Share”. The boot images should rebuild and you’ll be back in business!

Let me know if this gives you any trouble :).

Advertisements

One thought on “Adding Trace32 and Devcon to x86 and x64 WinPE

  1. Pingback: Table of Contents | windowsmasher

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s