none
Refresh Scenario using Two TS in SCCM...

    質問

  • hi all,

    we are working on the Refresh scenario for one of our client and using two task sequence to complete this task.

    TS#1 - Stores the user data & settings to SMP.(advertisement priority HIGH)

    TS#2 - Deploy Win7 & restores the data.(advertisement priority LOW,PXE boot)

    TS#1 stores the states and restarts the machine and after the restart execution of TS#2 begins.

    we are able to finish this task without any issue.

    But we are stuck in a problem which is, consider if the TS#1 fails without saving users data and the machine restart and the TS#2 execution starts.

    User data was not saved by TS#1 and so after execution of TS#2 what user gets is a machine with WIN 7 but no user data.

    I just want to make sure that if TS#1 has executed successfully,then only execution of TS#2 begins.

    Please suggest a way...

    Thanks

    Pranay.

    2012年2月20日 6:59

回答

  • HI,

    You can do this in a numbr of ways, one would be to add the Computer to a collection with TS#2 advertised using a script as the last step in TS#1, then there is no risk that the TS#2 will be executed if not TS#1 is successful. You could also use conditions in TS#2 and make sure a file is present on the C drive for instance otherwise it will fail. Not as pretty as the first suggesteion but it will work.

    I normally do the first option and add it to a collection for TS#2 autimatically in the first TS.

    Regards,
    Jörgen

     


    -- My System Center blog ccmexec.com -- Twitter @ccmexec

    2012年2月20日 7:28

すべての返信

  • HI,

    You can do this in a numbr of ways, one would be to add the Computer to a collection with TS#2 advertised using a script as the last step in TS#1, then there is no risk that the TS#2 will be executed if not TS#1 is successful. You could also use conditions in TS#2 and make sure a file is present on the C drive for instance otherwise it will fail. Not as pretty as the first suggesteion but it will work.

    I normally do the first option and add it to a collection for TS#2 autimatically in the first TS.

    Regards,
    Jörgen

     


    -- My System Center blog ccmexec.com -- Twitter @ccmexec

    2012年2月20日 7:28
  • thanks jorgen,

    It really helped a lot....

    Folowed the second way & it worked like a charm....

    Thanks alot....

    Thanks

    Pranay.

    2012年2月20日 15:39
  • hi jorgen,

    can you provide link of the script you mentioned in first step...

    thanks

    Pranay.

    2012年2月21日 3:54
  • Hi jorgen,

    I tried to run that script on few machine :-

    2 baremetal & 1 refresh but i am not able to get the desired result.

    I have created a package for the script with data source upto the script name & added a run command line task at the end of the task sequence with the command line :-

    cscript AddMeToCollection.vbs DC SVR00021 %_SMSTSClientIdentity%

    I am attaching the smsts log which shows few error message.Please have a look.


    2012年2月22日 7:54
  • <![LOG[Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\Active Request Handle. Error code 0x80070002]LOG]!><time="22:49:18.639+480" date="02-21-2012" component="TSManager" context="" type="2" thread="3580" file="utils.cpp:2930">
    <![LOG[Finalize logging request ignored from process 3572]LOG]!><time="22:49:18.639+480" date="02-21-2012" component="TSManager" context="" type="1" thread="3580" file="tslogging.cpp:1732">
    <![LOG[Process completed with exit code 0]LOG]!><time="22:49:18.655+480" date="02-21-2012" component="TSMBootstrap" context="" type="1" thread="1680" file="commandline.cpp:1102">
    <![LOG[Exiting with return code 0x00000000]LOG]!><time="22:49:18.655+480" date="02-21-2012" component="TSMBootstrap" context="" type="1" thread="1680" file="tsmbootstrap.cpp:1118">
    <![LOG[Process completed with exit code 0]LOG]!><time="22:49:18.670+480" date="02-21-2012" component="OSDSetupHook" context="" type="1" thread="3348" file="commandline.cpp:1102">
    <![LOG[Task sequence completed 0x00000000]LOG]!><time="22:49:18.670+480" date="02-21-2012" component="OSDSetupHook" context="" type="1" thread="3348" file="basesetuphook.cpp:1381">
    <![LOG[Terminating system message loop.]LOG]!><time="22:49:18.701+480" date="02-21-2012" component="OSDSetupHook" context="" type="0" thread="3368" file="debugwindow.cpp:222">
    <![LOG[Restoring original desktop wallpaper.]LOG]!><time="22:49:18.794+480" date="02-21-2012" component="OSDSetupHook" context="" type="0" thread="3348" file="wallpaperselector.cpp:138">
    <![LOG[::SystemParametersInfoW( 0x0014, 0, (LPVOID)m_sOriginalWallpaper.c_str(), 0 ), HRESULT=80070002 (e:\nts_sms_fre\sms\client\osdeployment\osdgina\wallpaperselector.cpp,161)]LOG]!><time="22:49:18.794+480" date="02-21-2012" component="OSDSetupHook" context="" type="0" thread="3348" file="wallpaperselector.cpp:161">
    <![LOG[Exiting SetClientProvisioningMode 0x00000000]LOG]!><time="22:49:50.837+480" date="02-21-2012" component="OSDSetupHook" context="" type="0" thread="3348" file="provisioningmode.cpp:68">
    <![LOG[Uninstalling Setup Hook]LOG]!><time="22:49:50.837+480" date="02-21-2012" component="OSDSetupHook" context="" type="1" thread="3348" file="basesetuphook.cpp:1424">
    <![LOG[Removing setup hook from registry.]LOG]!><time="22:49:50.837+480" date="02-21-2012" component="OSDSetupHook" context="" type="0" thread="3348" file="vistasetuphook.cpp:143">
    <![LOG[Successfully removed C:\Windows\system32\OSDGINA.DLL]LOG]!><time="22:49:50.837+480" date="02-21-2012" component="OSDSetupHook" context="" type="1" thread="3348" file="basesetuphook.cpp:1179">
    <![LOG[Could not delete the file C:\Windows\system32\OSDSETUPHOOK.EXE. Error code 5]LOG]!><time="22:49:50.837+480" date="02-21-2012" component="OSDSetupHook" context="" type="1" thread="3348" file="utils.cpp:709">
    <![LOG[Marking the file C:\Windows\system32\OSDSETUPHOOK.EXE for deletion on Reboot]LOG]!><time="22:49:50.837+480" date="02-21-2012" component="OSDSetupHook" context="" type="1" thread="3348" file="utils.cpp:733">
    <![LOG[Successfully removed C:\Windows\system32\OSDSETUPHOOK.EXE]LOG]!><time="22:49:50.837+480" date="02-21-2012" component="OSDSetupHook" context="" type="1" thread="3348" file="basesetuphook.cpp:1179">
    <![LOG[Successfully removed C:\Windows\system32\_SMSOSDSetup]LOG]!><time="22:49:50.837+480" date="02-21-2012" component="OSDSetupHook" context="" type="1" thread="3348" file="basesetuphook.cpp:1216">
    <![LOG[Finalizing logging from process 3344]LOG]!><time="22:49:50.837+480" date="02-21-2012" component="OSDSetupHook" context="" type="1" thread="3348" file="tslogging.cpp:1736">
    <![LOG[Successfully finalized logs to SMS client log directory from C:\Windows\SysWOW64\CCM\Logs]LOG]!><time="22:49:50.837+480" date="02-21-2012" component="OSDSetupHook" context="" type="1" thread="3348" file="tslogging.cpp:1536">
    <![LOG[Cleaning up task sequencing logging configuration.]LOG]!><time="22:49:50.837+480" date="02-21-2012" component="OSDSetupHook" context="" type="0" thread="3348" file="tslogging.cpp:578">

    2012年2月22日 7:58
  • Hi,

    Are you running the step with an account with the required permissions necessary in SCCM to add it to the collection? Or have you delegated the permissions to the network access account?

    Regards,
    Jörgen


    -- My System Center blog ccmexec.com -- Twitter @ccmexec

    2012年2月22日 8:04
  • found this in the log file :-

    <![LOG[Executing command line: Run command line]LOG]!><time="22:47:58.378+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="commandline.cpp:805">
    <![LOG[Microsoft (R) Windows Script Host Version 5.8]LOG]!><time="22:47:58.703+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[Copyright (C) Microsoft Corporation. All rights reserved.]LOG]!><time="22:47:58.780+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[]LOG]!><time="22:47:58.780+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[]LOG]!><time="22:49:13.799+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[===================================]LOG]!><time="22:49:13.799+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[   ADDING COMPUTER TO COLLECTION]LOG]!><time="22:49:13.799+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[===================================]LOG]!><time="22:49:13.799+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[Site Server specified: DC]LOG]!><time="22:49:13.799+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[Collection ID specified: SVR00021]LOG]!><time="22:49:13.799+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[SMS Client GUID:A4F85AC0-5178-4972-B7E7-85A52836D0A5]LOG]!><time="22:49:13.799+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[Computer Name: BM-MOVE2COLL2]LOG]!><time="22:49:13.799+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[Process completed with exit code 0]LOG]!><time="22:49:14.618+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="commandline.cpp:1102">
    <![LOG[Error connecting to root\sms namespace to find Provider Location. Exiting!]LOG]!><time="22:49:14.618+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    <![LOG[Error = -2147024891 - Access is denied. ]LOG]!><time="22:49:14.618+480" date="02-21-2012" component="InstallSoftware" context="" type="1" thread="820" file="runcommandline.cpp:34">
    2012年2月22日 8:21
  • Hi,

    Your sccm server is called DC? No firewall between the client and the server that could block the traffic?

    Try executing the command line on the server to verify that it works.

    Also did you check the permission of the account used?

    regards,

    Jörgen


    -- My System Center blog ccmexec.com -- Twitter @ccmexec

    2012年2月22日 8:26
  • hi jorgen,

    yes the server in which sccm is installed is called dc and firewall ports are opened...

    i was using sccm 2007 sp1 so there was not option to run the command line step in the TS as admin so i updated it to sp3...

    I executed the command as administrator but still same issue.

    <![LOG[Successfully finalized logs to SMS client log directory from C:\WINDOWS\system32\CCM\Logs]LOG]!><time="15:53:59.312+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="tslogging.cpp:1536">
    <![LOG[Cleaning up task sequencing logging configuration.]LOG]!><time="15:53:59.328+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1540" file="tslogging.cpp:578">
    <![LOG[Resuming SMS Components]LOG]!><time="15:53:59.328+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:1026">
    <![LOG[Waiting for CcmExec service to be fully operational]LOG]!><time="15:53:59.328+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4129">
    <![LOG[Succeeded loading resource DLL 'C:\WINDOWS\system32\CCM\1033\TSRES.DLL']LOG]!><time="15:54:00.609+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="util.cpp:869">
    <![LOG[CcmExec service is up and fully operational]LOG]!><time="15:54:54.246+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4178">
    <![LOG[TS environment not initialized. Getting pause cookie from registry]LOG]!><time="15:54:54.246+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:816">
    <![LOG[Getting SoftwareDistribution pause cookie]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2707">
    <![LOG[Opening reg key Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2715">
    <![LOG[Getting value SoftwareDistribution]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2726">
    <![LOG[SoftwareDistribution pause cookie: 6189]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2735">
    <![LOG[Getting SoftwareUpdates pause cookie]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2707">
    <![LOG[Opening reg key Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2715">
    <![LOG[Getting value SoftwareUpdates]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2726">
    <![LOG[SoftwareUpdates pause cookie: 6189]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2735">
    <![LOG[Getting System Health Agent pause cookie]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2707">
    <![LOG[Opening reg key Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2715">
    <![LOG[Getting value System Health Agent]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2726">
    <![LOG[kTSKey.GetDword(sComponent.c_str(), &nCookie), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\utils.cpp,2732)]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1540" file="utils.cpp:2732">
    <![LOG[Error setting HKEY_LOCAL_MACHINE\Software\Microsoft\SMS\Task Sequence\System Health Agent. code 80070002]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="3" thread="1540" file="utils.cpp:2732">
    <![LOG[Error - could not get pause cookie for System Health Agent. code 80070002]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="3" thread="1540" file="utils.cpp:2743">
    <![LOG[The cookie that will be used for SWD resume = 6189]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:830">
    <![LOG[Resume for CCM component SoftwareDistribution requested]LOG]!><time="15:54:54.262+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4029">
    <![LOG[The cookie that will be used for SWUpdate resume = 6189]LOG]!><time="15:54:54.572+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:838">
    <![LOG[Resume for CCM component SoftwareUpdates requested]LOG]!><time="15:54:54.572+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4029">
    <![LOG[Access handle will be read from registry]LOG]!><time="15:54:54.603+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="swdupdatescontroller.cpp:288">
    <![LOG[Getting active request access handle]LOG]!><time="15:54:54.603+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2864">
    <![LOG[Opening reg key Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:54:54.603+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2871">
    <![LOG[Getting value Active Request Handle]LOG]!><time="15:54:54.603+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2882">
    <![LOG[Access handle: {170F57CA-5BE8-4FE2-B53F-A583A19FB952}]LOG]!><time="15:54:54.603+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2890">
    <![LOG[Access handle: {170F57CA-5BE8-4FE2-B53F-A583A19FB952}]LOG]!><time="15:54:54.603+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="swdupdatescontroller.cpp:293">
    <![LOG[Attempting to release request using {170F57CA-5BE8-4FE2-B53F-A583A19FB952}]LOG]!><time="15:54:54.603+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="swdupdatescontroller.cpp:300">
    <![LOG[CoCreateInstance succeeded]LOG]!><time="15:54:54.634+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="swdupdatescontroller.cpp:315">
    <![LOG[ReleaseRequest succeeded]LOG]!><time="15:54:55.331+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="swdupdatescontroller.cpp:320">
    <![LOG[Opening the task sequence key HKLM\Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:54:55.331+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2772">
    <![LOG[Deleting a pause cookie from registry key HKLM\Software\Microsoft\SMS\Task Sequence\SoftwareDistribution]LOG]!><time="15:54:55.331+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2778">
    <![LOG[Opening the task sequence key HKLM\Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:54:55.331+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2772">
    <![LOG[Deleting a pause cookie from registry key HKLM\Software\Microsoft\SMS\Task Sequence\SoftwareUpdates]LOG]!><time="15:54:55.331+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2778">
    <![LOG[Opening the task sequence key HKLM\Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:54:55.331+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2772">
    <![LOG[Deleting a pause cookie from registry key HKLM\Software\Microsoft\SMS\Task Sequence\System Health Agent]LOG]!><time="15:54:55.331+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2778">
    <![LOG[kTaskSequence.DeleteValue(sComponent.c_str()), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\utils.cpp,2782)]LOG]!><time="15:54:55.331+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1540" file="utils.cpp:2782">
    <![LOG[Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\System Health Agent. Error code 0x80070002]LOG]!><time="15:54:55.331+000" date="02-22-2012" component="TSManager" context="" type="2" thread="1540" file="utils.cpp:2782">
    <![LOG[Opening the task sequence key HKLM\Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:54:55.331+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2920">
    <![LOG[Deleting the access handle from registry key HKLM\Software\Microsoft\SMS\Task Sequence\Active Request Handle]LOG]!><time="15:54:55.331+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:2926">
    <![LOG[Stopping Task Sequence Manager service]LOG]!><time="15:54:55.440+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:487">
    <![LOG[Advertisement ID: SVR20032]LOG]!><time="15:56:17.072+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1260" file="utility.cxx:505">
    <![LOG[Package ID: SVR0004B]LOG]!><time="15:56:17.119+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1260" file="utility.cxx:507">
    <![LOG[Sending StatusMessage]LOG]!><time="15:56:17.181+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1260" file="libsmsmessaging.cpp:3806">
    <![LOG[Formatted header:]LOG]!><time="15:56:17.181+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1260" file="libsmsmessaging.cpp:1500">
    <![LOG[<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:56F6D99B-2EC4-4362-A264-057699F8F02F</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2012-02-22T10:26:17Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="2150"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>
    ]LOG]!><time="15:56:17.181+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1260" file="libsmsmessaging.cpp:1501">
    <![LOG[CLibSMSMessageWinHttpTransport::Send: URL: DC.SERVER.COM:80  CCM_POST /ccm_system/request]LOG]!><time="15:56:17.181+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1260" file="libsmsmessaging.cpp:7446">
    <![LOG[The request has succeeded. 200 OK]LOG]!><time="15:56:17.212+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1260" file="libsmsmessaging.cpp:7734">
    <![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="15:56:17.212+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1260" file="utils.cpp:829">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=13]LOG]!><time="15:56:17.212+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1260" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=13]LOG]!><time="15:56:17.212+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1260" file="executionenv.cxx:386">
    <![LOG[Set a global environment variable _SMSTSInstructionStackString=]LOG]!><time="15:56:17.212+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1260" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=]LOG]!><time="15:56:17.212+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1260" file="executionenv.cxx:414">
    <![LOG[Save the current environment block]LOG]!><time="15:56:17.212+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1260" file="executionenv.cxx:833">
    <![LOG[Successfully save execution state and environment to local hard disk]LOG]!><time="15:56:17.227+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1260" file="engine.cxx:255">
    <![LOG[Failed to show task sequence progress dialog. Error code 0x800706bf]LOG]!><time="15:56:17.243+000" date="02-22-2012" component="TSManager" context="" type="2" thread="1260" file="clientui.cpp:191">
    <![LOG[ServiceCtrlHandler - STOP/SHUTDOWN control request received]LOG]!><time="15:56:19.971+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1792" file="tsmanager.cpp:518">
    <![LOG[ServiceCtrlHandler - Signalling shutdown event]LOG]!><time="15:56:19.987+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1792" file="tsmanager.cpp:523">
    <![LOG[ServiceCtrlHandler - Leaving Task Sequence Manager ServiceCtrlHandler]LOG]!><time="15:56:20.002+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1792" file="tsmanager.cpp:541">
    <![LOG[LOGGING: Finalize process ID set to 1552]LOG]!><time="15:57:29.453+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1556" file="tslogging.cpp:1489">
    <![LOG[Successfully intialized Logging for TS Manager.]LOG]!><time="15:57:29.468+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1556" file="tsmanager.cpp:617">
    <![LOG[Commandline: C:\WINDOWS\system32\CCM\TSManager.exe /service]LOG]!><time="15:57:29.484+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1556" file="tsmanager.cpp:60">
    <![LOG[/service parameter found at index: 38]LOG]!><time="15:57:29.484+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1556" file="tsmanager.cpp:67">
    <![LOG[/noclient parameter found at index: -1]LOG]!><time="15:57:29.484+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1556" file="tsmanager.cpp:98">
    <![LOG[Successfully registered Task Sequencing COM Interface.]LOG]!><time="15:57:29.500+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1556" file="environmentlib.cpp:782">
    <![LOG[Executing as a service]LOG]!><time="15:57:29.500+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1556" file="tsmanager.cpp:650">
    <![LOG[In start service]LOG]!><time="15:57:29.500+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1556" file="tsmanager.cpp:250">
    <![LOG[Started ServiceMain]LOG]!><time="15:57:29.546+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tsmanager.cpp:300">
    <![LOG[!sVolumeID.empty(), HRESULT=80004005 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,467)]LOG]!><time="15:57:29.546+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="resolvesource.cpp:467">
    <![LOG[!sTSMDataPath.empty(), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,1395)]LOG]!><time="15:57:29.546+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="resolvesource.cpp:1395">
    <![LOG[Failed to restore logs from cache. Execution history may be lost.]LOG]!><time="15:57:29.546+000" date="02-22-2012" component="TSManager" context="" type="2" thread="1580" file="tsmanager.cpp:390">
    <![LOG[Task Sequence Manager executing as service main thread]LOG]!><time="15:57:29.546+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tsmanager.cpp:417">
    <![LOG[Initializing TS Environment]LOG]!><time="15:57:29.546+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tsmanager.cpp:1088">
    <![LOG[Creating Task Sequencing Environment]LOG]!><time="15:57:29.546+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tsmanager.cpp:1092">
    <![LOG[Environment scope "Global\{51A016B6-F0DE-4752-B97C-54E6F386A912}" successfully created]LOG]!><time="15:57:29.546+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="environmentscope.cpp:250">
    <![LOG[Environment scope "Global\{BA3A3900-CA6D-4ac1-8C28-5073AFC22B03}" successfully created]LOG]!><time="15:57:29.546+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="environmentscope.cpp:250">
    <![LOG[!sVolumeID.empty(), HRESULT=80004005 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,467)]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="resolvesource.cpp:467">
    <![LOG[!sTSMDataPath.empty(), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,1395)]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="resolvesource.cpp:1395">
    <![LOG[TS::Utility::GetTSMDataPath(sTSMDataPath), HRESULT=80070002 (e:\nts_sms_fre\sms\client\tasksequence\tsmanager\tsmanager.cpp,1106)]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="tsmanager.cpp:1106">
    <![LOG[Failed to locate the local data path. The files needed to resume the task sequence are missing.  This could be because the task sequence finished while in Windows PE.  Please check the largest available partition for SMSTSLog\smsts.log file for more information.
    The system cannot find the file specified. (Error: 80070002; Source: Windows)]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="3" thread="1580" file="tsmanager.cpp:1106">
    <![LOG[Task Sequence Manager could not initialize Task Sequence Environment. code 80070002]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="3" thread="1580" file="tsmanager.cpp:1294">
    <![LOG[hr = InitializeEnvironment(), HRESULT=80070002 (e:\nts_sms_fre\sms\client\tasksequence\tsmanager\tsmanager.cpp,734)]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="tsmanager.cpp:734">
    <![LOG[Task sequence execution failed with error code 80070002]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="3" thread="1580" file="tsmanager.cpp:790">
    <![LOG[Cleaning Up. Removing Authenticator]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tsmanager.cpp:578">
    <![LOG[!sVolumeID.empty(), HRESULT=80004005 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,467)]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="resolvesource.cpp:467">
    <![LOG[!sTSMDataPath.empty(), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,1395)]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="resolvesource.cpp:1395">
    <![LOG[There is no TSM local data path being set]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:1400">
    <![LOG[Successfully unregistered Task Sequencing Environment COM Interface.]LOG]!><time="15:57:29.937+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="environmentlib.cpp:869">
    <![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="15:57:30.000+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="commandline.cpp:229">
    <![LOG[Set command line: "C:\WINDOWS\system32\CCM\TsProgressUI.exe" /Unregister]LOG]!><time="15:57:30.000+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="commandline.cpp:707">
    <![LOG[Executing command line: "C:\WINDOWS\system32\CCM\TsProgressUI.exe" /Unregister]LOG]!><time="15:57:30.000+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="commandline.cpp:805">
    <![LOG[==========[ TsProgressUI started in process 1604 ]==========]LOG]!><time="15:57:30.062+000" date="02-22-2012" component="TsProgressUI" context="" type="1" thread="1608" file="winmain.cpp:327">
    <![LOG[Command line: "C:\WINDOWS\system32\CCM\TsProgressUI.exe" /Unregister]LOG]!><time="15:57:30.062+000" date="02-22-2012" component="TsProgressUI" context="" type="0" thread="1608" file="winmain.cpp:330">
    <![LOG[Unregistering COM classes]LOG]!><time="15:57:30.062+000" date="02-22-2012" component="TsProgressUI" context="" type="1" thread="1608" file="winmain.cpp:202">
    <![LOG[Unregistering class objects]LOG]!><time="15:57:30.062+000" date="02-22-2012" component="TsProgressUI" context="" type="1" thread="1608" file="winmain.cpp:503">
    <![LOG[Shutdown complete.]LOG]!><time="15:57:30.062+000" date="02-22-2012" component="TsProgressUI" context="" type="1" thread="1608" file="winmain.cpp:520">
    <![LOG[Process completed with exit code 0]LOG]!><time="15:57:30.078+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="commandline.cpp:1102">
    <![LOG[Successfully unregistered TS Progress UI.]LOG]!><time="15:57:30.078+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:1963">
    <![LOG[Getting active request access handle]LOG]!><time="15:57:30.093+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:3023">
    <![LOG[Opening reg key Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:57:30.093+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:3030">
    <![LOG[Getting Program ID]LOG]!><time="15:57:30.093+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:3041">
    <![LOG[Getting Package ID]LOG]!><time="15:57:30.093+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:3050">
    <![LOG[Package ID: SVR0004B, Program ID: *]LOG]!><time="15:57:30.093+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:3058">
    <![LOG[Setting program history for SVR0004B:*]LOG]!><time="15:57:30.093+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="swdupdatescontroller.cpp:374">
    <![LOG[Opening the task sequence key HKLM\Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:57:30.093+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:3089">
    <![LOG[Deleting the package ID from registry key HKLM\Software\Microsoft\SMS\Task Sequence\Package]LOG]!><time="15:57:30.093+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:3095">
    <![LOG[Deleting the program ID from registry key HKLM\Software\Microsoft\SMS\Task Sequence\Program]LOG]!><time="15:57:30.093+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:3101">
    <![LOG[Start to cleanup TS policy]LOG]!><time="15:57:30.093+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="utils.cpp:2481">
    <![LOG[TS Deleted 0 instances]LOG]!><time="15:57:30.281+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="utils.cpp:2524">
    <![LOG[TS Policy cleanup done]LOG]!><time="15:57:30.281+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="utils.cpp:2526">
    <![LOG[End TS policy cleanup]LOG]!><time="15:57:30.281+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="utils.cpp:2530">
    <![LOG[g_TSManager.Run(), HRESULT=80070002 (e:\nts_sms_fre\sms\client\tasksequence\tsmanager\tsmanager.cpp,419)]LOG]!><time="15:57:30.281+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="tsmanager.cpp:419">
    <![LOG[Error executing Task Sequence Manager service. Code 0x80070002]LOG]!><time="15:57:30.281+000" date="02-22-2012" component="TSManager" context="" type="3" thread="1580" file="tsmanager.cpp:452">
    <![LOG[Sending error status message]LOG]!><time="15:57:30.281+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tsmanager.cpp:456">
    <![LOG[sMp.empty()==false, HRESULT=80004005 (e:\nts_sms_fre\sms\client\tasksequence\tsmanager\tsmanager.cpp,1559)]LOG]!><time="15:57:30.281+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="tsmanager.cpp:1559">
    <![LOG[MP name must be set in an environment variable]LOG]!><time="15:57:30.281+000" date="02-22-2012" component="TSManager" context="" type="3" thread="1580" file="tsmanager.cpp:1559">
    <![LOG[Non fatal error sending status message. Code 0x80004005]LOG]!><time="15:57:30.281+000" date="02-22-2012" component="TSManager" context="" type="2" thread="1580" file="tsmanager.cpp:1725">
    <![LOG[Finalizing logging from process 1552]LOG]!><time="15:57:30.281+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tslogging.cpp:1736">
    <![LOG[Successfully finalized logs to SMS client log directory from C:\WINDOWS\system32\CCM\Logs]LOG]!><time="15:57:30.578+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tslogging.cpp:1536">
    <![LOG[Cleaning up task sequencing logging configuration.]LOG]!><time="15:57:30.593+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="tslogging.cpp:578">
    <![LOG[Resuming SMS Components]LOG]!><time="15:57:30.593+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tsmanager.cpp:1026">
    <![LOG[Waiting for CcmExec service to be fully operational]LOG]!><time="15:57:30.593+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:4129">
    <![LOG[Succeeded loading resource DLL 'C:\WINDOWS\system32\CCM\1033\TSRES.DLL']LOG]!><time="15:57:31.593+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="util.cpp:869">
    <![LOG[CcmExec service is up and fully operational]LOG]!><time="15:58:10.355+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:4178">
    <![LOG[TS environment not initialized. Getting pause cookie from registry]LOG]!><time="15:58:10.355+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tsmanager.cpp:816">
    <![LOG[Getting SoftwareDistribution pause cookie]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2707">
    <![LOG[Opening reg key Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2715">
    <![LOG[Getting value SoftwareDistribution]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2726">
    <![LOG[SoftwareDistribution pause cookie: 7675]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2735">
    <![LOG[Getting SoftwareUpdates pause cookie]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2707">
    <![LOG[Opening reg key Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2715">
    <![LOG[Getting value SoftwareUpdates]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2726">
    <![LOG[SoftwareUpdates pause cookie: 7675]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2735">
    <![LOG[Getting System Health Agent pause cookie]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2707">
    <![LOG[Opening reg key Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2715">
    <![LOG[Getting value System Health Agent]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2726">
    <![LOG[kTSKey.GetDword(sComponent.c_str(), &nCookie), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\utils.cpp,2732)]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="utils.cpp:2732">
    <![LOG[Error setting HKEY_LOCAL_MACHINE\Software\Microsoft\SMS\Task Sequence\System Health Agent. code 80070002]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="3" thread="1580" file="utils.cpp:2732">
    <![LOG[Error - could not get pause cookie for System Health Agent. code 80070002]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="3" thread="1580" file="utils.cpp:2743">
    <![LOG[The cookie that will be used for SWD resume = 7675]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tsmanager.cpp:830">
    <![LOG[Resume for CCM component SoftwareDistribution requested]LOG]!><time="15:58:10.371+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:4029">
    <![LOG[The cookie that will be used for SWUpdate resume = 7675]LOG]!><time="15:58:10.449+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tsmanager.cpp:838">
    <![LOG[Resume for CCM component SoftwareUpdates requested]LOG]!><time="15:58:10.449+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:4029">
    <![LOG[Access handle will be read from registry]LOG]!><time="15:58:10.480+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="swdupdatescontroller.cpp:288">
    <![LOG[Getting active request access handle]LOG]!><time="15:58:10.480+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2864">
    <![LOG[Opening reg key Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:58:10.480+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2871">
    <![LOG[Getting value Active Request Handle]LOG]!><time="15:58:10.480+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2882">
    <![LOG[Access handle: {F0B6D3C1-0CB9-4318-9BCC-8E52B974D9E9}]LOG]!><time="15:58:10.480+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2890">
    <![LOG[Access handle: {F0B6D3C1-0CB9-4318-9BCC-8E52B974D9E9}]LOG]!><time="15:58:10.480+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="swdupdatescontroller.cpp:293">
    <![LOG[Attempting to release request using {F0B6D3C1-0CB9-4318-9BCC-8E52B974D9E9}]LOG]!><time="15:58:10.480+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="swdupdatescontroller.cpp:300">
    <![LOG[CoCreateInstance succeeded]LOG]!><time="15:58:10.480+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="swdupdatescontroller.cpp:315">
    <![LOG[ReleaseRequest succeeded]LOG]!><time="15:58:12.253+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="swdupdatescontroller.cpp:320">
    <![LOG[Opening the task sequence key HKLM\Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:58:12.253+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2772">
    <![LOG[Deleting a pause cookie from registry key HKLM\Software\Microsoft\SMS\Task Sequence\SoftwareDistribution]LOG]!><time="15:58:12.253+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2778">
    <![LOG[Opening the task sequence key HKLM\Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:58:12.253+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2772">
    <![LOG[Deleting a pause cookie from registry key HKLM\Software\Microsoft\SMS\Task Sequence\SoftwareUpdates]LOG]!><time="15:58:12.253+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2778">
    <![LOG[Opening the task sequence key HKLM\Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:58:12.253+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2772">
    <![LOG[Deleting a pause cookie from registry key HKLM\Software\Microsoft\SMS\Task Sequence\System Health Agent]LOG]!><time="15:58:12.253+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2778">
    <![LOG[kTaskSequence.DeleteValue(sComponent.c_str()), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\utils.cpp,2782)]LOG]!><time="15:58:12.253+000" date="02-22-2012" component="TSManager" context="" type="0" thread="1580" file="utils.cpp:2782">
    <![LOG[Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\System Health Agent. Error code 0x80070002]LOG]!><time="15:58:12.253+000" date="02-22-2012" component="TSManager" context="" type="2" thread="1580" file="utils.cpp:2782">
    <![LOG[Opening the task sequence key HKLM\Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:58:12.253+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2920">
    <![LOG[Deleting the access handle from registry key HKLM\Software\Microsoft\SMS\Task Sequence\Active Request Handle]LOG]!><time="15:58:12.253+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="utils.cpp:2926">
    <![LOG[Stopping Task Sequence Manager service]LOG]!><time="15:58:12.704+000" date="02-22-2012" component="TSManager" context="" type="1" thread="1580" file="tsmanager.cpp:487">

    2012年2月22日 10:38
  • above mentioned is the smsts log file of the refresh machine,

    when i tried to execute the command on a win 7 machine which was associated to SCCM before,

    by providing the command line as:-

    cscript.exe addmetocollection.vbs dc SVR00021  <GUID of the Machine>

    it gave me this message :-

    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.


    ===================================
       ADDING COMPUTER TO COLLECTION
    ===================================
    Site Server specified: dc
    Collection ID specified: SVR00021
    SMS Client A4F85AC0-5178-4972-B7E7-85A52836D0A5
    Computer Name: BM-MOVE2COLL2
    SMS Provider Namespace = \\DC\root\sms\site_SVR
    Successfully Connected to the SMS Provider Namespace
    Specified Collection (SVR00021) was Not Found. Exiting!

    SVR00021 exeist in my sccm server.this is the collection id of the collection where i want to move the machine.

    why i am getting this error...

    Please help

    Thanks

    Pranay.


    2012年2月22日 10:46
  • thanks jorgen

    for all your help...

    It was an account issue....

    executed the script with the sccm admin account and it's working fine....

    Thanks

    Pranay.

    2012年2月22日 12:26