Bug: WMF 5 Production Preview on Windows Server 2012 breaks Sysprep
Installing the WMF Production Preview on a Windows Server 2012 machine causes sysprep to fail with the following messages:
2016-01-14 15:58:26, Error [0x0f00bf] SYSPRP CreateSysprepActionList: Invalid action node sysprepOrder found for component Microsoft-Windows-SoftwareInventoryLogging-ScheduledTasks
2016-01-14 15:58:26, Error SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x10dd
2016-01-14 15:58:26, Error SYSPRP RunPlatformActions:Failed while executing SysprepSession actions; dwRet = 0x10dd
2016-01-14 15:58:26, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x10dd
2016-01-14 15:58:26, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x800710dd
2016-01-14 15:58:26, Info [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
2016-01-14 15:58:26, Info [0x0f0052] SYSPRP Shutting down SysPrep log
2016-01-14 15:58:26, Info [0x0f004d] SYSPRP The time is now 2016-01-14 15:58:26
Comparing versions of Generalize.xml from before and after installing WMF 5 Production Preview shows that these stanzas are added:
--- H:\Projects\Windows Image Maint\GeneralizeBefore.xml
+++ H:\Projects\Windows Image Maint\GeneralizeAfter.xml
@@ -213,4 +213,19 @@
<assemblyIdentity name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" version="6.2.9200.16384" versionScope="NonSxS"/>
<sysprepModule methodName="WerSysprepGeneralize" moduleName="wer.dll"/>
</imaging>
+ <imaging exclude="">
+ <assemblyIdentity name="Microsoft-Windows-SoftwareInventoryLogging-ScheduledTasks" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" version="6.2.9616.933" versionScope="NonSxS"/>
+ <sysprepOrder order="0x3300"/>
+ <registryActions>
+ <deleteValue name="Identity" path="HKEYLOCALMACHINE\Software\Microsoft\Windows\SoftwareInventoryLogging"/>
+ </registryActions>
+ </imaging>
+ <imaging exclude="">
+ <assemblyIdentity name="Microsoft-Windows-MiStreamProvider" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" version="6.2.9616.933" versionScope="NonSxS"/>
+ <sysprepOrder order="0x3200"/>
+ <registryActions>
+ <deleteValue name="LastTargetUri" path="HKEYLOCALMACHINE\Software\Microsoft\Windows\StreamProvider"/>
+ <deleteValue name="LastFullPayloadTime" path="HKEYLOCALMACHINE\Software\Microsoft\Windows\StreamProvider"/>
+ </registryActions>
+ </imaging>
</sysprepInformation>
Apparently Sysprep on Windows Server 2012 doesn't know what "sysprepOrder" is.
Workaround: Delete the added stanzas, then sysprep runs to completion without errors.

We will make sure this doesn’t repro with WMF 5.1 release.
2 comments
-
Andrew Wipf commented
I should add, this is impacting both Prod Preview and released 5.0 (https://www.microsoft.com/en-us/download/details.aspx?id=50395) versions for us.
-
Andrew Wipf commented
We are running into this as well.