[SOLVED] opsi-wim-capture - sysprep failing
Verfasst: 08 Dez 2020, 10:01
Hello,
I'm currently trying to create an Windows 10 image via opsi-wim-capture but sysprep is failing.
In the logs I can find the following error messages:
- SYSPRP Encountered error 0x91 while deleting directory '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\...
- SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\...
- SYSPRP Failed to clean the package repository database: 0x80070005.
- SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralize' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x5
- SYSPRP SysprepSession::ExecuteAction: Failed during sysprepModule operation; dwRet = 0x5
- SYSPRP SysprepSession::ExecuteInternal: Error in executing action for Microsoft-Windows-AppX-Sysprep; dwRet = 0x5
- SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x5
- SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x5
- SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x5
- SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x80070005
- [opsi-wim-capture] Error: sysprep failed
I already tried taking ownership of C:\ProgramData\Microsoft\Windows\AppRepository, changing the permissions and deleting the StateRepository files. (e.g. https://valcesia.com/2019/12/07/sysprep-error/ )
Does anyone here have similar experiences or any idea how to the solve the issue?
Thanks in advance!
Regards,
wildx
I'm currently trying to create an Windows 10 image via opsi-wim-capture but sysprep is failing.
In the logs I can find the following error messages:
- SYSPRP Encountered error 0x91 while deleting directory '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\...
- SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\...
- SYSPRP Failed to clean the package repository database: 0x80070005.
- SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralize' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x5
- SYSPRP SysprepSession::ExecuteAction: Failed during sysprepModule operation; dwRet = 0x5
- SYSPRP SysprepSession::ExecuteInternal: Error in executing action for Microsoft-Windows-AppX-Sysprep; dwRet = 0x5
- SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x5
- SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x5
- SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x5
- SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x80070005
- [opsi-wim-capture] Error: sysprep failed
I already tried taking ownership of C:\ProgramData\Microsoft\Windows\AppRepository, changing the permissions and deleting the StateRepository files. (e.g. https://valcesia.com/2019/12/07/sysprep-error/ )
Does anyone here have similar experiences or any idea how to the solve the issue?
Thanks in advance!
Regards,
wildx