I've been working on getting Windows 10 available in our private cloud as blueprint and kept having the deploy fail when trying to sysprep it. When logging in directly to the system and running sysprep, we see this error.

Setup Error message

When digging further we find in the C:\Windows\System32\Sysprep\Panther\setuperr.log this text.

SYSPRP Package Microsoft.Getstarted_1.5.22.1_x64_8wekyb3d8bbwe was installed for a user, but not provisioned
SYSPRP Failed to remove apps for the current user


This is caused by Windows App Store installing things while the template is online and connected to the network.

Resolution

Two solutions I've found so far

  1. When installing the OS, have it disconnected from the network.
  2. Clean up the template if that doesn't work by running the commands
    get-appxpackage -name *packagename* | remove-appxpackage