BigFix use of the Microsoft Deployment Toolkit (MDT) is non-traditional since we shortcut many of the steps that were intended for users that exclusively use MDT to perform os deployments. Consequently, adding scripts and custom task sequences into the "MDT Bundle" that gets generated by using our MDT Bundle Creator tool can be done, but in a non-standard way.

 

There are two ways to add a custom task sequence - I will walk though both:

Option 1: Using MDT's Deployment Workbench.

  1. Open the deployment workbench, and find the Deployment Share that you generated using IEM's MDT Bundle Creator tool.
    1. note: this will be the target path you specified in the parameters.ini file that accompanies the MDT Bundle Creator tool.
  2. ​Find the Task Sequence you want to modify, and open up the task sequence dialog.
    1. Windows 7 Task Sequence Dialog
  3. Insert the Task Sequence at the desired location
  4. When you're done modifying that Task Sequence, and you've made all the changes you're going to make (to each capture/deploy and each os), you should then update your media item by first selecting Advanced Configuration->Media; then right-click the media item (should be named MEDIA001) and then "Update Media Content". This will apply your changes to the Deploy folder that you either have or will eventually upload to the IEM server via the Upload MDT Bundle Dashboard within the OS Deployment and Bare Metal Imaging site.
  5. Now you will need to browse to the location where your MDT Bundle is generated, find and delete /Deploy/Boot/LiteTouchPE_x64.wim and /Deploy/Boot/LiteTouchPE_x86.wim
  6. If your task sequences call any scripts or other supporting files are needed, you should now add them to /Deploy/Scripts
  7. Upload your Deploy folder to IEM Server using the Upload MDT Bundle Dashboard.
  8. Done.

Option 2: Make direct edits to existing Deploy folder

  1. Find your MDT Bundle's Deployment (Deploy) folder
    1. note: this will be the target path you specified in the parameters.ini file that accompanies the MDT Bundle Creator tool.
  2. Find the task sequence you would like to edit - for example if I wanted to make a change to Deploy Windows 7 x86 task seqeunce, I would open /Deploy/Control/D_W7X86_01/ts.xml in my favorite text editor.
  3. Now edit the task sequence as you please - but be careful to ensure syntactical mistakes are made - as a simple comma out of place can cause significant failures during deployment. If you're simply adding a custom script to run, you can use the following:
    1. <step type="SMS_TaskSequence_RunCommandLineAction" name="Example Script" description="" disable="false" continueOnError="true" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
        <defaultVarList>
          <variable name="PackageID" property="PackageID"></variable>
          <variable name="RunAsUser" property="RunAsUser">false</variable>
          <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
          <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
          <variable name="LoadProfile" property="LoadProfile">false</variable>
        </defaultVarList>
        <action>%SCRIPTROOT%\MyScript.ext</action>
      </step>
  4. Repeat for any other task sequences that require the same or similar changes.
  5. Now add any scripts (i.e. MyScript.ext in the previous step's example) to /Deploy/Scripts
  6. Upload your Deploy folder to IEM Server using the Upload MDT Bundle Dashboard.
  7. Done.