Every time I run Sysprep on Windows 2008 R2, I get "A fatal error occurred while trying to sysprep the machine." error. I check the setuperrlog and I get the following:
2013-12-05 14:40:38, Error [0x0f0082] SYSPRP LaunchDll:Failure occurred while executing 'C:\Windows\System32\wevtapi.dll,EvtIntSysprepCleanup', returned error code 5[gle=0x00000005]
2013-12-05 14:40:38, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 5[gle=0x00000005]
2013-12-05 14:40:38, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070005[gle=0x00000005]
I have done the following to correct this error but still nothing:
This error shows that sysprep was run multiple times on the machine, please open a command prompt, type: slmgr /dlv to view how many times of remaining Windows Activation count. Generally speaking, to sysprep the image on a single computer for multiple times, you need to configure theMicrosoft-Windows-Security-SPP| SkipRearmto 1 in the unattend.xml file. I am assuming whether you configure theMicrosoft-Windows-Security-Licensing-SLC| SkipRearmto 1 instead of SPP, the SLC setting is deprecated and should not be used.
As a work around of this problem, please type: regedit in the Start Search box to open Registry Editor, set the value of GeneralizationState under HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus to 7, then run sysprep again.
If the same issue still persists, please unistall the MSDTC and Reinstall it, then try the sysprep.
To uninstall MSDTC :- msdtc -uninstall
To reinstall MSDTC :- msdtc –install
I have access to Event logs and nothing is throwing an Access denied. Is there any Group Policies or Registry that is preventing Sysprep to run or get to the wevtapi.dll?
Please Help!