Sunday, December 1, 2013

Task Sequence stops randomly

imagine:
you've installed SCCM 2012 site, configured roles, feature, client settings, set up updates management, created and tested software deployment based on the still new and still cool apllication model...
... created your build and capture task sequence, and it even did run without failures, or you were so mighty you could resolve then at no time...
and then you are ready to deploy :)...
... well thats what you are thinking, BUT SCCM 2012 seams to think differently. and your ubercool deployment task sequence, that was supposed to roll out the freshly built image just stops at some point and doesn't want to go any further :(... like the #@$%@ thing is telling you - "nope, you haven't learned enough to be that cool"

the simptoms are:
you've just captured the image using a build and capture TS.
you've added the fresh image to SCCM 2012 and want to deploy it right away.
you've even (maybe) applied some remaining updates off-line...

when this task sequence runs, it'll apply image, drivers etc, install and configure the clients and then - it'll hang up while trying to install the first application or package. the very misleading thing in this case is that if you run a script (using "run command line" TS step ;)) and specify a package, it'll work, but the very next (and first) install program or install application step will just hang up. and it'll do it like forever.
and your SMSts.log will contain entries like this:
<![LOG[Waiting for installation job to complete..]LOG]!>
<![LOG[Waiting for job status notification...]LOG]!>
<![LOG[Waiting for job status notification...]LOG]!>
...

please don't worry!
do not try to remove, rearrange or simply adjust that app or package, cause it will not help!

this discussion on the Technet contains the solution!
so don't be a hero, just execute the script below before capturing the image :D

strComputer = "."
Set objSWbemServices = GetObject("winmgmts:\\" & strComputer & "\root\ccm")
Set colSWbemObjectSet = objSWbemServices.InstancesOf("SMS_MaintenanceTaskRequests")
For Each objSWbemObject In colSWbemObjectSet
strInstance = "SMS_MaintenanceTaskRequests.TaskID='"&objSWbemObject.TaskID&"'"
objSWbemServices.delete strInstance
Next

 thats how the corresponding TS step could look like...











2 comments:

  1. A true friend is one who overlooks your failures and tolerates your success! See the link below for more info.


    #failures
    www.ufgop.org

    ReplyDelete
  2. I really enjoyed reading your article. I found this as an informative and interesting post, so i think it is very useful and knowledgeable. I would like to thank you for the effort you have made in writing this article.


    edupdf.org

    ReplyDelete