Error running task sequence - Exit code is 1168
Hi all, We are currently experiencing an intermittent problem when initiating a task sequence from within SCCM 2007 / MDT 2010 (integrated) gives rise to an error and the task sequence fails to start. The task sequence has a pre-requisite program specified in “Run another program first” Advanced tab which is used to initiate the removal of SafeBoot (drive encryption). This has worked previously on machines / VMs with and without SafeBoot installed but for some reason, yesterday, we have started to see the following errors when trying to initiate the task sequence from RAP. The task sequence is for an XP to Win7 upgrade, but the failure is occuring before we even get that far. From execmgr.log Program exit code 259 execmgr 25/05/2011 23:45:12 952 (0x03B8) <![LOG[Program ran past its maximum runtime. It will be orphaned]LOG]!><time="23:45:12.429+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="executionstatus.cpp:232"> <![LOG[Raising event: [SMS_CodePage(437), SMS_LocaleID(1033)] instance of SoftDistProgramExceededTime { AdvertisementId = "EU120072"; ClientID = "GUID:cb95db2d-a288-415d-8837-6094f92e87b2"; DateTime = "20110525224512.445000+000"; MachineName = "XZXLXPBGJL3Q1"; MaximumTime = "720"; PackageName = "UEU01286"; ProcessID = 744; ProgramName = "MDT_safeboot_remove"; SiteCode = "E03"; ThreadID = 952; }; ]LOG]!><time="23:45:12.476+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="event.cpp:525"> <![LOG[Raised Program Exceeded Time Event for Ad:EU120072, Package:UEU01286, Program: MDT_safeboot_remove]LOG]!><time="23:45:12.492+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="executioncontext.cpp:945"> <![LOG[Raising event: [SMS_CodePage(437), SMS_LocaleID(1033)] instance of SoftDistProgramExceededTime { AdvertisementId = "EU120066"; ClientID = "GUID:cb95db2d-a288-415d-8837-6094f92e87b2"; DateTime = "20110525224512.492000+000"; MachineName = "XZXLXPBGJL3Q1"; MaximumTime = "720"; PackageName = "UEU01286"; ProcessID = 744; ProgramName = "MDT_safeboot_remove"; SiteCode = "E03"; ThreadID = 952; }; ]LOG]!><time="23:45:12.508+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="event.cpp:525"> <![LOG[Raised Program Exceeded Time Event for Ad:EU120066, Package:UEU01286, Program: MDT_safeboot_remove]LOG]!><time="23:45:12.508+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="executioncontext.cpp:945"> <![LOG[Execution is complete for program MDT_safeboot_remove. The exit code is 259, the execution status is Unknown Status]LOG]!><time="23:45:12.508+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="execreqmgr.cpp:3908"> <![LOG[Execution Request for package EU100028 program * state change from Ready to WaitingDependency]LOG]!><time="23:45:13.023+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="executionrequest.cpp:488"> <![LOG[Executing program in Admin context]LOG]!><time="23:45:14.226+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="executionrequest.cpp:3277"> <![LOG[Execution Manager timer has been fired.]LOG]!><time="23:45:14.242+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="3644" file="execreqmgr.cpp:5188"> <![LOG[Execution Request for package EU100028 program * state change from WaitingDependency to NotifyExecution]LOG]!><time="23:45:14.258+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="executionrequest.cpp:488"> <![LOG[Executing program as a task sequence.]LOG]!><time="23:45:14.273+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="executionengine.cpp:176"> <![LOG[Successfully prepared command line "C:\WINDOWS\system32\CCM\TSLauncher.exe"]LOG]!><time="23:45:14.367+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="tasksequenceexecution.cpp:40"> <![LOG[Command line = "C:\WINDOWS\system32\CCM\TSLauncher.exe", Working Directory = C:\WINDOWS\system32\]LOG]!><time="23:45:14.367+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="scriptexecution.cpp:284"> <![LOG[Created Process for the passed command line]LOG]!><time="23:45:14.367+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="scriptexecution.cpp:407"> <![LOG[Raising event: [SMS_CodePage(437), SMS_LocaleID(1033)] instance of SoftDistProgramStartedEvent { AdvertisementId = "EU120066"; ClientID = "GUID:cb95db2d-a288-415d-8837-6094f92e87b2"; CommandLine = "\"C:\\WINDOWS\\system32\\CCM\\TSLauncher.exe\""; DateTime = "20110525224514.367000+000"; MachineName = "XZXLXPBGJL3Q1"; PackageName = "EU100028"; ProcessID = 744; ProgramName = "*"; SiteCode = "E03"; ThreadID = 952; UserContext = "NT AUTHORITY\\SYSTEM"; WorkingDirectory = "C:\\WINDOWS\\system32\\"; }; ]LOG]!><time="23:45:14.383+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="event.cpp:525"> <![LOG[Raised Program Started Event for Ad:EU120066, Package:EU100028, Program: *]LOG]!><time="23:45:14.383+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="executioncontext.cpp:523"> <![LOG[Merging policies]LOG]!><time="23:45:14.695+-60" date="05-25-2011" component="execmgr" context="" type="2" thread="3644" file="softdistpolicy.cpp:3060"> <![LOG[Program exit code 1168]LOG]!><time="23:45:15.070+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="3644" file="scriptexecution.cpp:547"> <![LOG[Looking for MIF file to get program status]LOG]!><time="23:45:15.070+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="3644" file="executionstatus.cpp:282"> <![LOG[Script for Package:EU100028, Program: * failed with exit code 1168]LOG]!><time="23:45:15.086+-60" date="05-25-2011" component="execmgr" context="" type="3" thread="3644" file="executionstatus.cpp:249"> <![LOG[Raising event: [SMS_CodePage(437), SMS_LocaleID(1033)] instance of SoftDistProgramErrorEvent { AdvertisementId = "EU120066"; ClientID = "GUID:cb95db2d-a288-415d-8837-6094f92e87b2"; DateTime = "20110525224515.148000+000"; ExitCode = "1168"; MachineName = "XZXLXPBGJL3Q1"; PackageName = "EU100028"; ProcessID = 744; ProgramName = "*"; SiteCode = "E03"; ThreadID = 3644; UserContext = "NT AUTHORITY\\SYSTEM"; }; ]LOG]!><time="23:45:15.179+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="3644" file="event.cpp:525"> <![LOG[Raised Program Error Event for Ad:EU120066, Package:EU100028, Program: *]LOG]!><time="23:45:15.179+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="3644" file="executioncontext.cpp:648"> <![LOG[Execution is complete for program *. The exit code is 1168, the execution status is FailureNonRetry]LOG]!><time="23:45:15.226+-60" date="05-25-2011" component="execmgr" context="" type="1" thread="952" file="execreqmgr.cpp:3908"> From smts.log Error getting running advert info. Code 0x80070490 TSLauncher 25/05/2011 23:45:14 3296 (0x0CE0) Error getting package location and access account information. Code 0x80070490 TSLauncher 25/05/2011 23:45:14 3296 (0x0CE0) Error initializing TS environment. Code 0x80070490 TSLauncher 25/05/2011 23:45:14 3296 (0x0CE0) Task sequence launcher advertisement failed!. Code 0x80070490 TSLauncher 25/05/2011 23:45:14 3296 (0x0CE0) Has anyone else experienced this problem?
May 26th, 2011 12:20pm

any maintenance windows involved ? My step by step SCCM Guides I'm on Twitter > ncbrady
Free Windows Admin Tool Kit Click here and download it now
May 26th, 2011 12:39pm

Nope. I've just created a very (very!) basic TS with just Use Toolkit in it and get exactly the same problem :-/
May 26th, 2011 1:14pm

I created that exact setup for a customer a couple of years ago, but chose to do the part stuff from a Custom Media Hook, as that runs prior to choosing the actual TS! Here is the post i wrote on it http://blog.coretech.dk/mip/setting-up-the-custom-media-hook-pre-ts-action/Michael Petersen http://blog.coretech.dk/mip/
Free Windows Admin Tool Kit Click here and download it now
May 26th, 2011 2:33pm

You have an error on the pre task so the task sequence will not run Execution is complete for program MDT_safeboot_remove. The exit code is 259, the execution status is Unknown Status it must have an exit code of 0 or the task sequence will not start. can you not run the safeboot_remove in the task sequence and trap the error and continue if TS step fails?
May 26th, 2011 2:51pm

I don't think it's anything to do with the Task sequence itself as I've created a new TS with only a "Use Toolkit" step in it (no "Run this program first) and the problem still happens. One thing I did notice is that it starts to work after a number of "Merging Policies" steps in the execmgr.log file. Not entirely sure what that's pointing to at the moment.
Free Windows Admin Tool Kit Click here and download it now
May 27th, 2011 12:59am

I found that there was a user security group in the collection that I was advertising the task sequence to. The user that was logged in was a member of this group and so consequently I believe the task sequence was being advertised to both the computer (in the collection) and the user (via the group). That's why I was seeing the Merging Policies steps in the execmgr.log file. This seems to have resolved the problem. Cheers Simon
May 27th, 2011 6:58am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics