Sysprep broken in Windows 10 Build 9926
Turns out that Sysprep is broken in Windows 10 Build 9926, but there is a workaround…
When trying to run Sysprep on a virtual machine with Windows 10 build 9926 installed you may be greeted with the following error message:
A fatal error occurred while trying to sysprep the machine.
This only happens if the virtual machine is connected to Internet during setup.
If you open setuperr.log found in C:\Windows\System32\Sysprep\Panther you see the following:
Error SYSPRP Package Microsoft.InsiderHub_18.104.22.1680_x64__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.
There are two workarounds:
- Make sure the virtual machine you are using for reference images never connects to Internet.
- Prior to run sysprep, have the task sequence delete all uppdated packages using PowerShell
To delete a package, use the following PowerShell command:
# Delete a package
Get-AppxPackage –Name *Insider* | Remove-AppxPackage