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:
- KB2769827
- TechNet Article "How to delete or remove "white" blank shortcut in shell:appsFolder"
- Restore Microsoft Store application in Windows 10
The only things that I did when installing the system were these, in order:
- Installed Windows 10 Pro using "windows_multiple_editions" ISO from MSDN on an EFI VM;
- Created a user "Admin" during the initial OOBE, logged in and ran compmgmt.msc and enabled built-in "Administrator";
- Logged in as "Administrator", logged into a network share, ran installation scripts that install a bunch of programs;
- Deleted "Admin" and did a VMware Snapshot before Sysprepping; and
- Ran Sysprep.exe /oobe /generalize and received the above error doing so.
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:
- Can this be fixed?
- What caused this, so that future troubled administrators will know how to avoid this?
- By deleting "Admin" have I somehow screwed something up (referring to the TechNet Article)?
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:
- Windows 10 Pro x64 (Build 10240);
- 2GB RAM, 60 GB HDD;
- EFI;
- Not domain joined. Currently on WORKGROUP; and
- Internet is NAT'd with VM host.
Errors listed in the log file:
- 0x0F0070
- 0x0F0082
- 0x0F00D8
I appreciate the feedback and answers. Hopefully someone will be able to outsmart this SysPrep error. Thanks for reading!