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: ZTICleanSetupInprogress.zip
Website link: https://panaconsulting.egnyte.com/h-s/20110615/dae8ca6c6fbf4f03
.gif)