Sysprep 3.14 fatal error

0

I'm having a trouble with Sysprep and Windows 8.1. I pulled down an image to the same hardware it was captured from. The caputred image was in Audit mode. I updated the driver for the SATA controller and connected the the laptop to our VPN (creating a profile file). Now, when I run sysprep, I get the error:

A fatal error occurred while trying to sysprep the machine.

Looking at the setupact.log, I see the following:

2014-02-13 12:31:35, Info SYSPRP Starting compatibility generalization.
2014-02-13 12:31:35, Info SYSPRP Executing generalization routine 'DisableHEASLR'...
2014-02-13 12:31:35, Info SYSPRP Generalization routine 'DisableHEASLR' failed.
2014-02-13 12:31:35, Info [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Generalize_Compat' from C:\Windows\System32\spcompat.dll without error
2014-02-13 12:31:35, Info [0x0f00bd] SYSPRP CreateSysprepActionList: Building action list for component Microsoft-Windows-Cryptography
2014-02-13 12:31:35, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'CAPISysPrep_Generalize' in C:\Windows\system32\capisp.dll; executing it
2014-02-13 12:31:35, Info capisp.dll::CAPISysPrep_Generalize: returning 0
2014-02-13 12:31:35, Info [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'CAPISysPrep_Generalize' from C:\Windows\system32\capisp.dll without error
2014-02-13 12:31:35, Info [0x0f00bd] SYSPRP CreateSysprepActionList: Building action list for component Microsoft-Windows-Sysprep-SpBcd
2014-02-13 12:31:35, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Generalize_Bcd' in C:\Windows\System32\spbcd.dll; executing it
2014-02-13 12:31:35, Warning TOOL Sysprep_Generalize_Bcd: There is no system BCD store to be generalized. This image will not be bootable unless a system store is later created. Status=[0xC000000F] Returning...
2014-02-13 12:31:35, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Generalize_Bcd' from C:\Windows\System32\spbcd.dll; dwRet = 0x2
2014-02-13 12:31:35, Error SYSPRP ActionPlatform::ExecuteAction: Error in executing action; dwRet = 0x2
2014-02-13 12:31:35, Error SYSPRP ActionPlatform::ExecuteActionList: Error in execute actions; dwRet = 0x2 2014-02-13 12:31:35, Error SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x2
2014-02-13 12:31:35, Error SYSPRP RunPlatformActions:Failed while executing SysprepSession actions; dwRet = 0x2
2014-02-13 12:31:35, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x2
2014-02-13 12:31:35, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x80070002

I've checked verified the following registry settings:

HKLM\System\Setup\Status\SysprepStatus\GeneralizeationState = 7 HKLM\Software\Microsoft\WindowsNT\CurrentVersion\SoftwareProtectionPlatform\SkipRearm = 1

After running sysprep, I checked HKLM\System\Setup\Status\SysprepStatus\GeneralizeationState again, and found that it was set to '3'. I changed it back to 7, no love. I removed the installed Windows Store Apps (all default, nothing was added by me), by running:

Get-AppxPackage -AllUsers | Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Remove-AppxProvisionedPackage -B

Before running sysprep, I ran "slmgr /dlv" and found that my remaining Windows rearm cound was 999. After Sysprep failed, I re-ran slmgr, and got:

Code 0xC004D302 Description: The security processor reported that the trusted data store was rearmed.

Finally, I tried checking the properties of spbcd.dll, but the properties window won't open. If I reboot, I can't get into Audit mode; Windows complains about not being setup, and I have to pull the image down to see the desktop again. Note that this was a fresh install of Windows and not an upgrade.

What is causing this and how do I avoid it?

Thanks.

windows-8.1
sysprep
asked on Super User Feb 14, 2014 by StackExchangeGuy

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0