MDT 2010 Update 1: Fixes to ConfigMgr Task Sequence Template Error Handling

In MDT 2010, we restructured the ConfigMgr task sequence templates so that they had a common structure to them, with two main groups:

  • Execute Task Sequence
  • This group contained all the actual deployment tasks
  • Gather Logs and StateStore on Failure
  • If any of the steps in the main “Execute” step failed, this group would handle the cleanup:  copy logs to the network, move the state store to a safe location, etc.

But there was one problem in the setup in MDT 2010: the error was caught and the cleanup steps would run, but after that the task sequence would appear to complete successfully.  No dialog would be displayed indicating that there was a failure, and the status messages sent to the server would indicate that the task sequence was successful too .  If you were watching the results from the individual steps (watching for status message 11135 messages), you would see that there was an error though.

In MDT 2010 Update 1, we’ve updated each of the task sequence templates (and included the same logic in the new UDI template) to include two new steps to address this problem.  The first is named “Set Error Code” and (appropriately enough) captures the error code (e.g. everyone’s favorite –2147500037) into a task sequence variable.  The second step, named “Error in the task sequence”, then runs a new script (ZTIErrorMsg.wsf) whose only purpose is to force the task sequence to fail with that same error code.  That solves the problem.

So this is one of the main reasons to consider generating new ConfigMgr task sequences after installing MDT 2010 Update 1.


Comments (5)
  1. MDT 2010 Update 1 fixes the problem so that it will again display an error.  Without Update 1, the status messages would show the error but there would be no error dialog on the client.

  2. Anonymous says:

    How does UDI work with Computer Replacement task?  If the application scan needs to take place on the old computer which has mappings and dependencies but the installation of what was selected in UDI to happen on the new computer (the replacement)?

  3. Levi Stevens says:

    Michael.  Does this mean we no longer get a display on the Task Sequence failure? I have noticed if we hit a failure, it properly logs and sends up this status message, but it just restarts the Task Sequence and back into whatever previous state is (even if that state is no bootable OS).

    Is there a way to configure the ZTI Task sequence to display the error message on a hard failure?

  4. showbox says:

    Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
    For more info on showbox please refer below sites:
    Latest version of Showbox App download for all android smart phones and tablets. – It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
    For showbox on iOS (iPhone/iPad), please read below articles:
    Showbox for PC articles:
    There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment
    it doesn’t charge cash for watching films and recordings. Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android.
    The above all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on ‘Obscure sources’.

  5. aw says:

    hai, I just want to tell you that I am just very new to blogs and seriously loved this website. More than likely I’m planning to bookmark your blog post .
    You amazingly come with really good posts. Thanks a lot for sharing your blog Microsoft.

Comments are closed.