Windows 10 Sysprep Error



Almost all of the obvious bugs and errors are all related to Microsoft new environment and the APPs...
Recently, I was trying to prepare a VM Template but I was stuck at the Sysprep process with the following error.

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  

After a couple of quick fix trials on my own, I couldn't figure it out. Turns out Microsoft has a beautiful article written on the subject...

https://support.microsoft.com/en-ca/help/2769827/sysprep-fails-after-you-remove-or-update-windows-store-apps-that-inclu

Long story short, let me save you a couple of minutes of reading... This is happening because of the app packages being installed on an active user and one of the sysprep procedures is to "clean up" appx-packages, because the apps are installed or in use, this process fails... Quick fix;

Login with the initial local user account on the computer, disable all other local user accounts and make sure that you removed the user profile from Windows as well... (Open system properties, Advanced Settings, Advanced tab,  click on "Settings" under "User Profiles", choose other local user accounts and remove them)

Run sysprep again!

Comments

Popular posts from this blog

System.Messaging.MessageQueueException (0x80004005): A workgroup installation computer does not support the operation (Public Queue create issue)

Veeam Backup Error : Failed to prepare guest for hot backup. Error: VSSControl

warning: Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead - Chef Development Kit Update