Wow, I had an account for this site already that worked...
Since I have this problem constantly with Windows 10 and always get this forum on my searches.. here are my steps to resolve it. (Other employees build their own images, so they constantly f-up the local admin account).
1. Run the Powershell command 'Get-AppxPackage | Remove-AppxPackage'
2. As someone stated above, configure your registry settings for SysPrep.
Open regedit and look for:
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState\
Set to value: 2
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\
Set to value: 7
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\SoftwareProtectionPlatform\SkipRearm
Set to value: 1
Then, run the command:
msdtc -uninstall (wait a few seconds)
msdtc -install (wait a few seconds)
3. From the Windows link above (except my edits to make it work)
Run the Import-Module Appx PowerShell cmdlet.
Run Import-Module Dism.
Run Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation.
Delete whatever account is tied to all of your Appx packages.
Reboot the computer and create a new local admin
Reboot the computer and login to your new admin account.
Capture the image as your new admin account.
Using these steps, I have been able to resolve all of my Windows 10 capture issues. The final step where I capture with a clean admin account has worked every time.