none
MDT 2012 Post OS Installation Task Sequence fails on first reboot (0x80090005 - fails to decrypt C:\_SMSTaskSequence\TSEnv.dat)

    Question

  • I am attempting to use MDT 2012 to run a Post OS Installation Task Sequence. Specifically, for the curious, I'd like to automate the hardening and application installation steps on top of a Windows Server 2008 R2 OS running on Amazon EC2.

    In have reproduced to the following:

    1. Install MDT 2012 Update 1 (and Windows AIK) from scratch.
    2. Create a fresh Post OS Installation Task Sequence.
    3. Add a single "Restart Computer" task to the Custom section.
    4. Use UNC to connect to this deployment share and run the sequence.
    5. Fails after the first restart.

    Detailed log files are below, but I continue to get this error on the first restart step during the task sequence (taken from bdd.log):

    <![LOG[Litetouch deployment failed, Return Code = -2146893819  0x80090005]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="3" thread="" file="LiteTouch">

    I've done a *lot* of searching around this. I've seen similar issues, but no solutions for this case. Some quick facts to cover the basics:

    • It is not joined to a domain. (I plan to join later after sysprep.)
    • The Windows time appears correct.
    • There is no PXE or SCCM server involved, so it does not seem to be an invalid server certificate issue.
    • There are no unexpected reboots being triggered during the sequence (since the sequence is out of the box / empty).
    • The tsenv.dat file is present (when LTICleanup is deliberately avoided), and small in size (much less than 10MB).

    My guess is that somewhere in the black magic of Microsoft.SMS.TSEnvironment and smsboot.exe, the encryption / decryption is going wrong. Perhaps it is using device / bios information to handle the encryption key which is changing in some subtle way during a VM restart?

    I've seen this fail approximately 40 times in various tests, checks, reproductions and debugging steps. It has worked twice, with no noticeable difference in the log files from the failed attempts until the decrypt tsenv.dat section (I diffed them).

    Detailed files below, thanks in advance for *any* suggestions or guidance!!

    Thanks, Nathan


    ----- smsts.log, after the restart and through the failure -----

    <![LOG[==============================[ TSMBootStrap.exe ]==============================]LOG]!><time="17:45:38.578+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="1480" file="tsmbootstrap.cpp:1039">
    <![LOG[Command line: "C:\MININT\Tools\X64\TsmBootstrap.exe"  /env:SAContinue]LOG]!><time="17:45:38.578+000" date="07-02-2013" component="TSMBootstrap" context="" type="0" thread="1480" file="tsmbootstrap.cpp:1040">
    <![LOG[Succeeded loading resource DLL 'C:\MININT\Tools\X64\00000409\TSRES.DLL']LOG]!><time="17:45:38.594+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="1480" file="util.cpp:869">
    <![LOG[Succeeded loading resource DLL 'C:\MININT\Tools\X64\TSRESNLC.DLL']LOG]!><time="17:45:38.594+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="1480" file="resourceutils.cpp:152">
    <![LOG[Running Task Sequence in standalone.]LOG]!><time="17:45:38.610+000" date="07-02-2013" component="TSMBootstrap" context="" type="0" thread="1480" file="tsmbootstrap.cpp:523">
    <![LOG[Environment scope "Global\{51A016B6-F0DE-4752-B97C-54E6F386A912}" successfully created]LOG]!><time="17:45:38.610+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="1480" file="environmentscope.cpp:250">
    <![LOG[Environment scope "Global\{BA3A3900-CA6D-4ac1-8C28-5073AFC22B03}" successfully created]LOG]!><time="17:45:38.610+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="1480" file="environmentscope.cpp:250">
    <![LOG[Loading the Task Sequencing Environment from "C:\_SMSTaskSequence\TSEnv.dat".]LOG]!><time="17:45:38.641+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="1480" file="tsmbootstrap.cpp:650">
    <![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\nts_sms_fre\sms\framework\smscrypt\windes.cpp,185)]LOG]!><time="17:45:38.656+000" date="07-02-2013" component="TSMBootstrap" context="" type="0" thread="1480" file="windes.cpp:185">
    <![LOG[SMS::Crypto::DES::DecryptBuffer( pbKey, nKeySize, pbEncryptedFile, cbFileLow, pbPlain, nPlainSize ), HRESULT=80090005 (e:\nts_sms_fre\sms\framework\smscrypt\windes.cpp,611)]LOG]!><time="17:45:38.656+000" date="07-02-2013" component="TSMBootstrap" context="" type="0" thread="1480" file="windes.cpp:611">
    <![LOG[SMS::Crypto::DES::DecryptBufferFromFile( (BYTE*)sFileKey.c_str(), sFileKey.size() * sizeof(WCHAR), pszFilePath, pbDecryptedBuffer, cbDecryptedBuffer ), HRESULT=80090005 (e:\nts_sms_fre\sms\framework\tscore\environmentlib.cpp,138)]LOG]!><time="17:45:38.656+000" date="07-02-2013" component="TSMBootstrap" context="" type="0" thread="1480" file="environmentlib.cpp:138">
    <![LOG[LoadFromFile(sEnvPath, shXml), HRESULT=80090005 (e:\nts_sms_fre\sms\framework\tscore\environmentlib.cpp,734)]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="0" thread="1480" file="environmentlib.cpp:734">
    <![LOG[Failed to load environment from C:\_SMSTaskSequence\TSEnv.dat (80090005)]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="2" thread="1480" file="environmentlib.cpp:741">
    <![LOG[TS::Environment::SharedEnvironment.loadEnvironment( sTSEnvDataFile ), HRESULT=80090005 (e:\nts_sms_fre\sms\client\tasksequence\tsmbootstrap\tsmbootstrap.cpp,655)]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="0" thread="1480" file="tsmbootstrap.cpp:655">
    <![LOG[Failed to load the Task Sequencing Environment object from "C:\_SMSTaskSequence\TSEnv.dat". Code(0x80090005)]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="3" thread="1480" file="tsmbootstrap.cpp:655">
    <![LOG[Failed to run task sequence (0x80090005).]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="3" thread="1480" file="tsmbootstrap.cpp:699">
    <![LOG[RunTaskSequence( eExecutionEnv, pszTSXMLFile, puExitCode ), HRESULT=80090005 (e:\nts_sms_fre\sms\client\tasksequence\tsmbootstrap\tsmbootstrap.cpp,829)]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="0" thread="1480" file="tsmbootstrap.cpp:829">
    <![LOG[Execute( eExecutionEnv, sConfigPath, sTSXMLFile, uBootCount, &uExitCode ), HRESULT=80090005 (e:\nts_sms_fre\sms\client\tasksequence\tsmbootstrap\tsmbootstrap.cpp,1106)]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="0" thread="1480" file="tsmbootstrap.cpp:1106">
    <![LOG[Exiting with return code 0x80090005]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="1480" file="tsmbootstrap.cpp:1118">
    <![LOG[Finalizing logging from process 652]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="1480" file="tslogging.cpp:1736">
    <![LOG[Successfully finalized logs to SMS client log directory from C:\Users\ADMINI~1\AppData\Local\Temp\2]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="1480" file="tslogging.cpp:1536">
    <![LOG[Deleting file without retry]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="1480" file="ccmfile.cpp:1015">
    <![LOG[Cleaning up task sequencing logging configuration.]LOG]!><time="17:45:38.672+000" date="07-02-2013" component="TSMBootstrap" context="" type="0" thread="1480" file="tslogging.cpp:578">

    ----- bdd.log through the restart -----

    <![LOG[ZTITatoo processing completed successfully.]LOG]!><time="17:39:49.000+000" date="07-02-2013" component="ZTITatoo" context="" type="1" thread="" file="ZTITatoo">
    <![LOG[Microsoft Deployment Toolkit version: 6.1.2373.0]LOG]!><time="17:39:49.000+000" date="07-02-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[The task sequencer log is located at C:\Users\ADMINI~1\AppData\Local\Temp\2\SMSTSLog\SMSTS.LOG.  For task sequence failures, please consult this log.]LOG]!><time="17:39:49.000+000" date="07-02-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Language/Locale Identified (in order of precedence): 1033,0409,0x0409,9,0009,0x0009]LOG]!><time="17:39:49.000+000" date="07-02-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Processing Application Type: MandatoryApplications]LOG]!><time="17:39:49.000+000" date="07-02-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Application List is empty, exiting ZTIApplications.wsf]LOG]!><time="17:39:49.000+000" date="07-02-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Processing Application Type: Applications]LOG]!><time="17:39:49.000+000" date="07-02-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Application List is empty, exiting ZTIApplications.wsf]LOG]!><time="17:39:49.000+000" date="07-02-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[ZTIApplications processing completed successfully.]LOG]!><time="17:39:49.000+000" date="07-02-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Command completed, return code = -2147021886]LOG]!><time="17:39:50.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Property LTIDirty is now = FALSE]LOG]!><time="17:39:50.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[If there is a drive letter defined, make sure we clear it now so we can *force* recalcutation.]LOG]!><time="17:39:50.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Property OSDTargetDriveCache is now = DIRTY]LOG]!><time="17:39:50.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[LTI initiating task sequence-requested reboot.]LOG]!><time="17:39:50.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Microsoft Deployment Toolkit version: 6.1.2373.0]LOG]!><time="17:39:55.000+000" date="07-02-2013" component="LTICopyScripts" context="" type="1" thread="" file="LTICopyScripts">
    <![LOG[--------- Script Start ---------]LOG]!><time="17:39:55.000+000" date="07-02-2013" component="LTICopyScripts" context="" type="1" thread="" file="LTICopyScripts">
    <![LOG[LTICopyScripts processing completed successfully.]LOG]!><time="17:39:55.000+000" date="07-02-2013" component="LTICopyScripts" context="" type="1" thread="" file="LTICopyScripts">
    <![LOG[Creating startup folder item to run LiteTouch.wsf once the shell is loaded.]LOG]!><time="17:39:55.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Shortcut "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\LiteTouch.lnk" created.]LOG]!><time="17:39:55.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Property BootPE is now = ]LOG]!><time="17:39:55.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Microsoft Deployment Toolkit version: 6.1.2373.0]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[ZTIUtility!GetAllFixedDrives (False)]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[New ZTIDiskPartition : \\AMAZONA-7B0LT2E\root\cimv2:Win32_DiskPartition.DeviceID="Disk #0, Partition #0"    \\AMAZONA-7B0LT2E\root\cimv2:Win32_LogicalDisk.DeviceID="C:"]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[New ZTIDisk : \\AMAZONA-7B0LT2E\root\cimv2:Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE0"]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[New ZTIDiskPartition : \\AMAZONA-7B0LT2E\root\cimv2:Win32_DiskPartition.DeviceID="Disk #1, Partition #0"    \\AMAZONA-7B0LT2E\root\cimv2:Win32_LogicalDisk.DeviceID="Z:"]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[New ZTIDisk : \\AMAZONA-7B0LT2E\root\cimv2:Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE1"]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[New ZTIDiskPartition : \\AMAZONA-7B0LT2E\root\cimv2:Win32_DiskPartition.DeviceID="Disk #2, Partition #0"    \\AMAZONA-7B0LT2E\root\cimv2:Win32_LogicalDisk.DeviceID="Y:"]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[New ZTIDisk : \\AMAZONA-7B0LT2E\root\cimv2:Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE2"]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[ZTIUtility!GetAllFixedDrives =  C: Z: Y:]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Found existing task sequence state information in C:\_SMSTaskSequence, will continue]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Not running within WinPE.]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[DeploymentMethod = UNC]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Validating connection to \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:36.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Mapped Network UNC Path X:  = \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Found Existing UNC Path X:  = \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Successfully established connection using supplied credentials.]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[DeployRoot = \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Property DeployDrive is now = X:]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[DeployDrive = X:]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Phase = STATERESTORE]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Validating connection to \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Found Existing UNC Path X:  = \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Found Existing UNC Path X:  = \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Successfully established connection using supplied credentials.]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Property DeployDrive is now = X:]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[DeployDrive = X:]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Validating connection to \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Found Existing UNC Path X:  = \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Found Existing UNC Path X:  = \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Successfully established connection using supplied credentials.]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[DeploymentType = STATERESTORE]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[ResourceRoot = \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Property ResourceDrive is now = X:]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[ResourceDrive = X:]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[SMS Task Sequencer already found on C:\MININT\Tools\X64]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[FindFile(...\Microsoft.BDD.Utility.dll)  Result : 0]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Copy File: \\10.37.20.22\DeploymentShare\Tools\x86\Microsoft.BDD.Utility.dll to C:\Users\ADMINI~1\AppData\Local\Temp\2\Tools\x86\]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[RUN: regsvr32.exe /s "C:\Users\ADMINI~1\AppData\Local\Temp\2\Tools\x86\Microsoft.BDD.Utility.dll"]LOG]!><time="17:45:37.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[FindFile(...\Microsoft.BDD.Utility.dll)  Result : 0]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Copy File: \\10.37.20.22\DeploymentShare\Tools\x64\Microsoft.BDD.Utility.dll to C:\Users\ADMINI~1\AppData\Local\Temp\2\Tools\x64\]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[RUN: regsvr32.exe /s "C:\Users\ADMINI~1\AppData\Local\Temp\2\Tools\x64\Microsoft.BDD.Utility.dll"]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[TargetOS is the current SystemDrive]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[About to run command: "C:\MININT\Tools\X64\TsmBootstrap.exe" /env:SAContinue]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Property LTIDirty is now = TRUE]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Command completed, return code = -2146893819]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Litetouch deployment failed, Return Code = -2146893819  0x80090005]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="3" thread="" file="LiteTouch">
    <![LOG[For more information, consult the task sequencer log ...\SMSTS.LOG.]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Property RetVal is now = -2146893819]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Unable to copy log to the network as no SLShare value was specified.]LOG]!><time="17:45:38.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[CleanStartItems Complete]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Unregistering TSCore.dll.]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[About to run command: wscript.exe "C:\MININT\Scripts\LTICleanup.wsf"]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Microsoft Deployment Toolkit version: 6.1.2373.0]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LTICleanup" context="" type="1" thread="" file="LTICleanup">
    <![LOG[Removing AutoAdminLogon registry entries]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LTICleanup" context="" type="1" thread="" file="LTICleanup">
    <![LOG[VSSMaxSize not specified using 5% of volume.]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LTICleanup" context="" type="1" thread="" file="LTICleanup">
    <![LOG[Logs contained 1 errors and 0 warnings.]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LTICleanup" context="" type="1" thread="" file="LTICleanup">
    <![LOG[No Windows PE image to delete.]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LTICleanup" context="" type="1" thread="" file="LTICleanup">
    <![LOG[Checking mapped network drive.]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LTICleanup" context="" type="1" thread="" file="LTICleanup">
    <![LOG[testing drive X: mapped to \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LTICleanup" context="" type="1" thread="" file="LTICleanup">
    <![LOG[Disconnecting drive X: mapped to \\10.37.20.22\DeploymentShare]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LTICleanup" context="" type="1" thread="" file="LTICleanup">
    <![LOG[Cleaning up C:\MININT directory.]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LTICleanup" context="" type="1" thread="" file="LTICleanup">
    <![LOG[Cleaning up TOOLS, SCRIPTS, and PACKAGES directories.]LOG]!><time="17:45:39.000+000" date="07-02-2013" component="LTICleanup" context="" type="1" thread="" file="LTICleanup">


    ---- smsts.log, from the start of Custom Tasks section until the restart -----

    <![LOG[Start executing an instruciton. Instruction name: Custom Tasks. Instruction pointer: 12]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="engine.cxx:117">
    <![LOG[Set a global environment variable _SMSTSCurrentActionName=Custom Tasks]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=12]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:668">
    <![LOG[The group (Custom Tasks) has been successfully started]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="instruction.cxx:2363">
    <![LOG[Sending status message . . .]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="utility.cxx:292">
    <![LOG[Executing in non SMS standalone mode. Ignoring send a task execution status message request]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="utility.cxx:302">
    <![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="utils.cpp:829">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=13]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=13]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:386">
    <![LOG[Set a global environment variable _SMSTSInstructionStackString=0 12]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=0 12]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:414">
    <![LOG[Save the current environment block]LOG]!><time="17:39:49.905+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:833">
    <![LOG[Successfully save execution state and environment to local hard disk]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="engine.cxx:255">
    <![LOG[Start executing an instruciton. Instruction name: Restart computer. Instruction pointer: 13]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="engine.cxx:117">
    <![LOG[Set a global environment variable _SMSTSCurrentActionName=Restart computer]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=13]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:668">
    <![LOG[Set a local default variable SMSRebootMessage]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:700">
    <![LOG[Set a local default variable SMSRebootTimeout]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:700">
    <![LOG[Set a local default variable SMSRebootTarget]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:700">
    <![LOG[Set a global environment variable _SMSTSLogPath=C:\Users\ADMINI~1\AppData\Local\Temp\2\SMSTSLog]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:668">
    <![LOG[Expand a string: smsboot.exe /target:WinPE]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:782">
    <![LOG[Expand a string: ]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:782">
    <![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="commandline.cpp:229">
    <![LOG[Set command line: smsboot.exe /target:WinPE]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="commandline.cpp:707">
    <![LOG[Start executing the command line: smsboot.exe /target:WinPE]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="instruction.cxx:2928">
    <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="instruction.cxx:2957">
    <![LOG[Expand a string: WinPEandFullOS]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:782">
    <![LOG[Executing command line: smsboot.exe /target:WinPE]LOG]!><time="17:39:49.921+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="commandline.cpp:805">
    <![LOG[========================= [ smsboot.exe ] =========================]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="Reboot" context="" type="1" thread="1468" file="rebootcomputer.cpp:184">
    <![LOG[Command line: '"smsboot.exe" /target:WinPE']LOG]!><time="17:39:49.936+000" date="07-02-2013" component="Reboot" context="" type="0" thread="1468" file="rebootcomputer.cpp:186">
    <![LOG[SMSTSRebootDelay=60]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="Reboot" context="" type="1" thread="1468" file="rebootcomputer.cpp:122">
    <![LOG[SMSTSRebootMessage=Initiating system reboot]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="Reboot" context="" type="1" thread="1468" file="rebootcomputer.cpp:122">
    <![LOG[SMSTSRebootRequested=WinPE]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="Reboot" context="" type="1" thread="1468" file="rebootcomputer.cpp:122">
    <![LOG[Process completed with exit code 0]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="commandline.cpp:1102">
    <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="instruction.cxx:3010">
    <![LOG[Successfully complete the action (Restart computer) with the exit win32 code 0]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="instruction.cxx:3036">
    <![LOG[Sending status message . . .]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="utility.cxx:292">
    <![LOG[Executing in non SMS standalone mode. Ignoring send a task execution status message request]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="utility.cxx:302">
    <![LOG[Set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:668">
    <![LOG[Clear local default environment]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:807">
    <![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="utils.cpp:829">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=14]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=14]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:386">
    <![LOG[Set a global environment variable _SMSTSInstructionStackString=0 12]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=0 12]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:414">
    <![LOG[Save the current environment block]LOG]!><time="17:39:49.936+000" date="07-02-2013" component="TSManager" context="" type="0" thread="680" file="executionenv.cxx:833">
    <![LOG[Successfully save execution state and environment to local hard disk]LOG]!><time="17:39:49.952+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="engine.cxx:255">
    <![LOG[Reboot to local harddisk]LOG]!><time="17:39:49.952+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="engine.cxx:458">
    <![LOG[Skipped RebootSystem()]LOG]!><time="17:39:49.952+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="engine.cxx:587">
    <![LOG[The action (Restart computer) initiated a reboot request]LOG]!><time="17:39:49.952+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="engine.cxx:278">
    <![LOG[Sending status message . . .]LOG]!><time="17:39:49.952+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="utility.cxx:292">
    <![LOG[Executing in non SMS standalone mode. Ignoring send a task execution status message request]LOG]!><time="17:39:49.952+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="utility.cxx:302">
    <![LOG[****************************************************************************]LOG]!><time="17:39:49.968+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="tsmanager.cpp:768">
    <![LOG[Execution engine result code: 2 (Success=0, Failure=1, RebootInitiated=2)]LOG]!><time="17:39:49.968+000" date="07-02-2013" component="TSManager" context="" type="1" thread="680" file="tsmanager.cpp:770">
    <![LOG[Process completed with exit code 2147945410]LOG]!><time="17:39:49.968+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="2028" file="commandline.cpp:1102">
    <![LOG[Exiting with return code 0x80070BC2]LOG]!><time="17:39:49.968+000" date="07-02-2013" component="TSMBootstrap" context="" type="1" thread="2028" file="tsmbootstrap.cpp:1118">
    <![LOG[==========[ TsProgressUI started in process 1708 ]==========]LOG]!><time="17:39:49.999+000" date="07-02-2013" component="TsProgressUI" context="" type="1" thread="2204" file="winmain.cpp:327">
    <![LOG[Command line: "C:\MININT\Tools\X64\TSProgressUI.exe"  /Unregister]LOG]!><time="17:39:49.999+000" date="07-02-2013" component="TsProgressUI" context="" type="0" thread="2204" file="winmain.cpp:330">
    <![LOG[Unregistering COM classes]LOG]!><time="17:39:49.999+000" date="07-02-2013" component="TsProgressUI" context="" type="1" thread="2204" file="winmain.cpp:202">
    <![LOG[Unregistering class objects]LOG]!><time="17:39:50.014+000" date="07-02-2013" component="TsProgressUI" context="" type="1" thread="2204" file="winmain.cpp:503">
    <![LOG[Shutdown complete.]LOG]!><time="17:39:50.014+000" date="07-02-2013" component="TsProgressUI" context="" type="1" thread="2204" file="winmain.cpp:520">

    Tuesday, July 02, 2013 9:26 PM

All replies

  • Have you looked at the MDT database to see what it is showing? You might look at changing the MDT database. If I remember it will apply the task sequence that you target to a PC based on its UUID, MAC Address or Asset Tag. I could imagine on reboot with EC2 you could be ending up with different UUID or a different MAC Address.

    Take a look at this article http://www.windowsnetworking.com/articles-tutorials/windows-7/Deploying-Windows-7-Part18.html on how to determine the UUID.

    If you aren't using Asset Tag you could try assigning an Asset Tag to each EC2 instance so when MDT communicates with the database it will match and finish the Task Sequence.

    Please reply back if that helps or doesn't I too would like to get MDT 2012 working smoothly on EC2.

    Wednesday, July 17, 2013 10:20 PM