So I seem to be experiencing an issue where Windows 10 and Windows Store apps (I am assuming) are interfering with Sysprep /oobe /generalize.
When I attempt to run the above command, I receive the following error in the setuperr.log:
Error SYSPRP Package Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
Error SYSPRP Package Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
I've had a look online at several articles only, namely:
The only things that I did when installing the system were these, in order:
I took the initiative to try and fix this quickly by checking out Powershell's AppxPackage cmdlet but the below command returned no results:
Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation | Select-String "Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe"
I suppose my questions are:
I understand that there are answers for different Appx related issues, but I have not touched Windows Store/Metro Apps at all whilst sysprepping. The only notable thing I installed was .NET 3.5 (Related?)
To re-cap my VM setup is:
Errors listed in the log file:
I appreciate the feedback and answers. Hopefully someone will be able to outsmart this SysPrep error. Thanks for reading!
So I managed to fix this by tinkering a bit with the Appx .NET package. I had a second user that was created during setup on VMware. "Admin" and "Administrator" were on the system. So I logged into "Admin" and ran:
Remove-AppxPackage "Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe"
I was then confronted with an error stating that "Microsoft.Skype" is using this .NET Runtime and removing the .NET package was not possible.
I had to quickly search for the correct package that this error was referring to by issuing the Powershell command:
Get-AppxPackage -AllUsers | Select-String "Microsoft.Skype"
It then showed a single Microsoft.Skype Appx Package!
I then removed the "Microsoft.Skype" Appx Package and proceeded to run the above command, it worked!
My next step was to do the same on "Administrator". So I did the above and ran Sysprep again, boom! It works. Hopefully this helps someone in the future. :)
TL;DR:
User contributions licensed under CC BY-SA 3.0