Clean up MDT “Leftover Junk” from Previous Task Sequence (The task sequence has been suspended)

By | June 15, 2011

In A LOT of cases, MDT fails to clean up properly after a Failed or even Successful Task Sequence.  These leftover files are a nuisance, and can cause the following error (The task sequence has been suspended).


Ive come accustomed to using the Diskpart tool to perform a “Clean” against “Disk 0” to ensure all files are removed.



BUT There is a BETTER way!  Johan put together an excellent tool to clean these leftover files before running LTI, so no more error messages in WinPE.  The only problem is that his blog entry only explains how to update a boot.wim for a onetime update.  When a user performs an “Update Deployment Share” it would wipe out the changes.

Note: If using the “Refresh” or “Sysprep And Capture” Task Sequences, this process will clear the MININT and start a new Deployment after rebooting into WinPE, so keep a backup of the “Unattend_PE_x86.xml”.  This will give you the ability to revert back to the default WinPE image.

I put together a quick .ZIP that can be used to use the script.



File name:
Website link:


2 thoughts on “Clean up MDT “Leftover Junk” from Previous Task Sequence (The task sequence has been suspended)

  1. Brian

    Howdy, I think your blog may be having web browser compatibility issues.
    Whenever I look at your web site in Safari, it looks fine however,
    when opening in IE, it’s got some overlapping issues. I just wanted to provide you with a quick heads up! Other than that, great site!


Leave a Reply

Your email address will not be published. Required fields are marked *