Just in case anybody runs across this, took me a while to find, on a 6 year old 
thread about something else...  and by the way, as a DCR for MDT, maybe want to 
collect C:\windows\system32\sysprep\panther logs when using SLShare and doing a 
capture?  Just a thought.

Using the latest MDT I'm building and capturing, in this case 2008 R2.  I'm all 
the way at the end of the TS, everything has installed/updated without issue.  
But just as sysprep runs the TS fails.  This is what's in LTISysprep.log

<![LOG[Found existing unattend.xml at 
C:\MININT\unattend.xml]LOG]!><time="10:14:17.000+000" date="12-12-2016" 
component="LTISysprep" context="" type="1" thread="" file="LTISysprep">
<![LOG[Property OSDAnswerFilePath is now = 
C:\MININT\unattend.xml]LOG]!><time="10:14:17.000+000" date="12-12-2016" 
component="LTISysprep" context="" type="1" thread="" file="LTISysprep">
<![LOG[Copying C:\MININT\unattend.xml to 
C:\windows\system32\sysprep\unattend.xml]LOG]!><time="10:14:17.000+000" 
date="12-12-2016" component="LTISysprep" context="" type="1" thread="" 
file="LTISysprep">
<![LOG[About to run command: C:\windows\system32\sysprep\sysprep.exe /quiet 
/generalize /oobe /quit 
/unattend:C:\windows\system32\sysprep\unattend.xml]LOG]!><time="10:14:17.000+000"
 date="12-12-2016" component="LTISysprep" context="" type="1" thread="" 
file="LTISysprep">
<![LOG[Command has been started (process ID 
1568)]LOG]!><time="10:14:17.000+000" date="12-12-2016" component="LTISysprep" 
context="" type="1" thread="" file="LTISysprep">
<![LOG[ZTI Heartbeat: command has been running for 0 minutes (process ID 
1568)]LOG]!><time="10:14:18.000+000" date="12-12-2016" component="LTISysprep" 
context="" type="1" thread="" file="LTISysprep">
<![LOG[Return code from command = 0]LOG]!><time="10:15:17.000+000" 
date="12-12-2016" component="LTISysprep" context="" type="1" thread="" 
file="LTISysprep">
<![LOG[Image state after sysprep: 
IMAGE_STATE_UNDEPLOYABLE]LOG]!><time="10:15:18.000+000" date="12-12-2016" 
component="LTISysprep" context="" type="1" thread="" file="LTISysprep">
<![LOG[Expected image state is IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE, actual 
image state is IMAGE_STATE_UNDEPLOYABLE, sysprep did not 
succeed.]LOG]!><time="10:15:18.000+000" date="12-12-2016" 
component="LTISysprep" context="" type="3" thread="" file="LTISysprep">
<![LOG[FAILURE ( 6192 ): ERROR - Sysprep did not complete successfully, check 
C:\windows\system32\sysprep\panther\setupact.log for 
details]LOG]!><time="10:15:18.000+00

C:\windows\system32\sysprep\panther\setuperr.log has this:

2016-12-12 12:44:45, Error                 SYSPRP 
Sysprep_Generalize_MiStreamProv: RegDeleteValue for target uri failed with 
error = 2[gle=0x00000002]
2016-12-12 12:44:45, Error                 SYSPRP 
Sysprep_Generalize_MiStreamProv: RegDeleteValue for full payload time failed 
with error = 2[gle=0x00000002]
2016-12-12 12:44:45, Error      [0x0f0082] SYSPRP LaunchDll:Failure occurred 
while executing 
'C:\windows\System32\silsysprep.dll,Sysprep_Generalize_MiStreamProv', returned 
error code 2[gle=0x00000002]
2016-12-12 12:44:45, Error      [0x0f0070] SYSPRP RunExternalDlls:An error 
occurred while running registry sysprep DLLs, halting sysprep execution. dwRet 
= 2[gle=0x00000002]
2016-12-12 12:44:45, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while 
processing sysprep generalize internal providers; hr = 
0x80070002[gle=0x00000002]

Found the solution here: 
https://social.msdn.microsoft.com/Forums/en-US/425bd101-8a87-488c-b2e2-9f2f8113a0d9/sysprep-fatal-error-occurred-while-trying-to-sysprep-the-machine?forum=w7itproinstall#e8fb464d-3e18-48d7-9421-474289b2e72f

Seems installing WMF 5 is at fault and adding

REG ADD HKLM\SOFTWARE\Microsoft\Windows\StreamProvider /v "LastFullPayloadTime" 
/t REG_DWORD /d "0" /f

In a Run Command line step right before executing sysprep lets sysprep find it, 
remove it, and complete successfully.

Hopefully this saves somebody a little time...

Todd



Reply via email to