question

Chris-2100 avatar image
1 Vote"
Chris-2100 asked deherman-MSFT edited

Sysprep Failure 21H1

Brand New Market Place Image 21H1 used for Azure Virtual Desktop, never logged onto all of this done using Powershell and Custom Script Extensions. Sysprep fails whether done via this method or logged onto, but appreciate if you logon to it then you can get issues with Appx Packages in that profile. This is a market place 21H1 Windows 10 Multi User Edition image with not much else done other than some core apps (msi).
Sysprep failing with the following error in the logs:
I have tried removing this app but it suggests it cant be removed!. Any help appreciated!

2022-04-06 12:27:22, Error SYSPRP Failed to remove staged package MicrosoftWindows.Client.CBS_120.2212.4170.0_x64__cw5n1h2txyewy: 0x80070002.[gle=0x00000002]
2022-04-06 12:27:22, Error SYSPRP Failed to remove apps for the current user: 0x80070002.
2022-04-06 12:27:22, Error SYSPRP Exit code of RemoveAllApps thread was 0x2.[gle=0x0000012a]
2022-04-06 12:27:22, Error SYSPRP Failed to remove all apps: 0x80070002.[gle=0x0000012a]
2022-04-06 12:27:22, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralize' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x2[gle=0x0000012a]
2022-04-06 12:27:22, Error SYSPRP SysprepSession::ExecuteAction: Failed during sysprepModule operation; dwRet = 0x2[gle=0x0000012a]
2022-04-06 12:27:22, Error SYSPRP SysprepSession::ExecuteInternal: Error in executing action for Microsoft-Windows-AppX-Sysprep; dwRet = 0x2[gle=0x0000012a]
2022-04-06 12:27:22, Error SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x2
2022-04-06 12:27:22, Info SYSPRP SysprepSession::Execute: Sysprep mode was not specified, deleting it from registry
2022-04-06 12:27:22, Error SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x2
2022-04-06 12:27:22, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x2
2022-04-06 12:27:22, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x80070002

azure-virtual-machineswindows-10-setup
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers