This is not really an error more a need to confirm what I suspect is happening.
I have created a SCCM OSD Task Sequence to install Windows 7 x64 and a host of applications.
The Task Sequence completes successfully as do all of the incorporated program installations (having checked the exit code using SCCM Client Center and the exit code in the execmgr.log).
What I have found is the the C:\_SMSTaskSequence folder remains with the following contents;
C:\_SMSTaskSequence\Packages\<Package ID>\.agent
The '.agent' file is a valid part of the package and has successfully been copied to the correct location, along with the other files.
What I think is happening is that when the clean up job is running it is failing to handle the fact the the file does not have a filename, but just an extension.
Has anyone experienced this before or know of another reason why it would be left behind?