Today I needed to re-run a task sequence and found the blog post in the following link.
First we need to download the tool from TechNet
1. Open an elevated PowerShell console and browse C:\MyScripts.
2. Run the following command:
3. Type the PackageID of the Task Sequence in the "PackageID" field and click search
4.Click the WIM object and delete it
5.Click Restart Agent button to restart the SMSAgent service