Sysprp Failed To Remove Apps For The Current User: 0x80073cf2 _best_
Primary causes:
# Run as Administrator Get-AppxProvisionedPackage -Online | Where-Object $_.DisplayName -notlike "*Microsoft*" | Remove-AppxProvisionedPackage -Online Then retry Sysprep. Identify the specific problematic app from logs, then: sysprp failed to remove apps for the current user 0x80073cf2
2025-03-15 10:23:45, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure while executing 'SysprepGeneralizeValidateUsers' from 'C:\Windows\System32\spopk.dll'; dwRet = 0x80073cf2 2025-03-15 10:23:45, Error [0x0f0070] SYSPRP sysprep.dll: Sysprep failed while validating Windows Store app package interactions. Error: 0x80073cf2 Sysprep fails because one or more provisioned apps (user-installable but pre-staged for all new users) are in a state that violates Sysprep’s requirement for a clean, unpersonalized default user profile. dism /online /remove-provisionedappxpackage /packagename:<
dism /online /remove-provisionedappxpackage /packagename:<PackageName> If above fails, execute a complete app package reset: If above fails
After this, reboot and re-run Sysprep. To prevent recurrence in reference images:
Remove-AppxProvisionedPackage -Online -PackageName <FullPackageName> If removal fails, force removal from the image (offline servicing recommended for production):