When you create a windows 10 base image, you can do that with two versions of windows. The windows 10 LTSC (Long Term Servicing Channel) or with Windows 10 SAC (Semi-Annual Channel).
The windows 10 SAC is the version we are all familiar with and provides us all the new features microsoft gives use. Including all the pre-installed trash like Candy Crunch etc.
Waited 8 minutes for virtual machine ‘imagename’ to power off.
Off course extending the policy did not work for me….. So I needed to check the sysprep log.
2019-01-16 11:17:27, Error SYSPRP Package A278AB0D.DragonManiaLegends_4.2.1.0_x86__h6adky7gbf63m was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2019-01-16 11:17:27, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2019-01-16 11:17:27, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
But it is a lot of work to do it for each app, so automation is key you should think..
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation.
Microsoft.WindowsMaps currently depends on the framework. Removing all packages that depend on the framework automatically removes the framework.
It turns out that almost all apps have dependencies. In this case you need to uninstall all apps with dependecies and leave the apps without dependecies like ‘Microsoft.NET.Native.Runtime.2.2_2.2.27011.0_x86__8wekyb3d8bbwe’ alone.
Be aware of the fact that you need to run this code every time you reseal your sysprep image..!!
I find using the following works for me every time.