Sysprep is failing because a Microsoft Store app (Microsoft.Windows.SecondaryTileExperience_10.0.0.0_neutral_cw5n1h2txyewy) is installed for the current user but is no longer provisioned for all users. This causes the Appx cleanup provider in Sysprep to fail with 0x80073cf2 / 0x3cf2.
To fix the issue on the reference (source) server before cloning:
- Open PowerShell as Administrator.
- List the problematic package and the users it is installed for:
Import-Module Appx Import-Module Dism Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like 'Microsoft.Windows.SecondaryTileExperience*' } | \ Format-List -Property PackageFullName,PackageUserInformation - For each user where the package shows as Installed, either:
- Delete that user profile from the reference server, or
- Sign in as that user and run the removal command in step 4.
- Remove the Appx package for the affected user account(s):
ReplaceRemove-AppxPackage -Package <packagefullname><packagefullname>with the exactPackageFullNamefrom step 2. - Remove the provisioning for the package so it is not treated as an all-user app:
Remove-AppxProvisionedPackage -Online -PackageName <packagefullname> - Ensure the server is not updating Store apps while preparing the image (for example, disconnect from the Internet or disable Automatic Updates in Audit mode) so the issue does not reoccur.
- Run Sysprep again with the desired options.
If additional Store apps cause the same error, repeat steps 2–5 for each affected package reported in C:\Windows\System32\Sysprep\Panther\setupact.log.
References: