Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, July 28, 2014 8:39 PM
We are installing Windows 7 via OSD and it all works. But we've noticed that once the OSD is done the folder C:\SMSTaskSequence is still on the machine and it is over 5GB in size. It has all of the packages that were installed during the OSD.
Why is this not being deleted? How come C:\Windows\CCMCACHE is not the package cache?
mqh7
All replies (5)
Monday, July 28, 2014 9:32 PM âś…Answered
It looks like it is finishing fine. Normally, the only time I've seen the _SMSTaskSequence folder being left behind is one just one or a couple files were still in use (like with USMT or certain logs), but that would only leave a few files/folders not everything.
If you want to triple check that the persist variable is not set, you could write out the TS variables to a log file.
Nash Pherson, Senior Systems Consultant
Now Micro - My Blog Posts
If you found a bug or want the product to work differently, share your feedback.
<-- If this post was helpful, please click the up arrow or propose as answer.
Monday, July 28, 2014 8:42 PM
>Why is this not being deleted?
Are you sure the task sequence completed successfully?
Did someone use the SMSTSPersistContent task sequence variable?
>How come C:\Windows\CCMCACHE is not the package cache
Is the content in that folder only the content accessed while in WinPE before the Setup Windows and ConfigMgr step?
I hope that helps,
Nash
Nash Pherson, Senior Systems Consultant
Now Micro - My Blog Posts
If you found a bug or want the product to work differently, share your feedback.
<-- If this post was helpful, please click the up arrow or propose as answer.
Monday, July 28, 2014 8:48 PM
Yes, the task sequence completes. In fact we've already deployed several hundred machines and they are all working.
I wrote the task sequence and I don't recall using the SMSTSPersistContent variable. where would it be entered in the TS? Which step?
Q: Is the content in that folder only the content accessed while in WinPE before the Setup Windows and ConfigMgr step?
No, the apps are all well past WinPE and ConfigMgr steps. They are all Post WinPE apps, like Adobe Reader, SnagIT, .Net Framework 4
mqh7
Monday, July 28, 2014 9:06 PM
>Yes, the task sequence completes.
Can you verify in smsts.log that it completes successfully?
> where would it be entered in the TS?
It can be entered at any point with a script, Set Task Sequence Variable, or Set Dynamic Variables step.
If you end up giving up on troubleshooting it, you could have the last step of your task sequence run a command line to create this key, which would remove the folder after the machine is next rebooted:
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce /v "SMSTSCleanup" /t REG_SZ /d "CMD /C RMDIR /S /Q C:\SMSTaskSequence" /f
Nash Pherson, Senior Systems Consultant
Now Micro - My Blog Posts
If you found a bug or want the product to work differently, share your feedback.
<-- If this post was helpful, please click the up arrow or propose as answer.
Monday, July 28, 2014 9:13 PM
Here is the C:\windows\CCM\Logs\SMSTS.LOG after the machine is done.
Failed to set log directory. Some execution history may be lost.
The system cannot find the file specified. (Error: 80070002; Source: Windows) OSDSetupHook 7/28/2014 11:55:38 AM 764 (0x02FC)
Executing task sequence OSDSetupHook 7/28/2014 11:55:38 AM 764 (0x02FC)
Task Sequence environment not found. OSDSetupHook 7/28/2014 11:55:38 AM 764 (0x02FC)
Attempting to get active request. OSDSetupHook 7/28/2014 11:55:38 AM 764 (0x02FC)
Failed to create instance if Software Execution Request Managerr. 0x80070005 OSDSetupHook 7/28/2014 11:55:38 AM 764 (0x02FC)
Waiting for ccmexec process to start. OSDSetupHook 7/28/2014 11:55:38 AM 764 (0x02FC)
Failed to create instance if Software Execution Request Managerr. 0x80070005 OSDSetupHook 7/28/2014 11:55:43 AM 764 (0x02FC)
Waiting for ccmexec process to start. OSDSetupHook 7/28/2014 11:55:43 AM 764 (0x02FC)
Failed to create instance if Software Execution Request Managerr. 0x80070005 OSDSetupHook 7/28/2014 11:55:48 AM 764 (0x02FC)
Waiting for ccmexec process to start. OSDSetupHook 7/28/2014 11:55:48 AM 764 (0x02FC)
GetActiveRequest failed with error code 0x87d01012 OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
GetActiveRequest failed. 0x87D01012. OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
ReleaseActiveRequest failed. 0x87d01012. OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
Deleting SMS_MaintenanceTaskRequests istance: SMS_MaintenanceTaskRequests.TaskID="{5983516A-1BDB-4493-8B88-934CC66D8EBD}". OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
Removed 1 instance of SMS_MaintenanceTaskRequests for tasksequence. OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
Uninstalling Setup Hook OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
Removing setup hook from registry. OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
Successfully removed C:\WINDOWS\system32\OSDGINA.DLL OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
Successfully removed C:\WINDOWS\system32\OSDSETUPHOOK.EXE OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
Successfully removed C:\WINDOWS\system32\SMSOSDSetup OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
GetTsRegValue() is unsuccessful. 0x80070002. OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
End program: OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
Successfully finalized logs to SMS client log directory from C:\WINDOWS\CCM\Logs OSDSetupHook 7/28/2014 11:55:55 AM 764 (0x02FC)
Also, the very last lines of the TS are being done. The last steps move the machine to the correct OU and then update the Computer description in AD. both of which happen.
mqh7