| Cause | Explanation | |-------|-------------| | | An app was provisioned for the machine but not fully installed, leaving a pending registration. | | User-specific app installs | The current administrator (or account running Sysprep) has installed, updated, or pinned modern apps. Sysprep requires the account to have zero UWP app state. | | Corrupt app package repository | The %ProgramFiles%\WindowsApps or registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx contains orphaned entries. | | Provisioned app removal blocked by policy | Group Policy or local policy (e.g., Allow deployment operations in special profiles ) restricts removal. | | Windows Update or Store background operations | Active background servicing or license validation holds a lock on an app package. |
Get-AppxPackage | Remove-AppxPackage
The most frequent cause of this error is using the built-in account to configure the PC and then running SysPrep.
If removal fails, force removal from the image (offline servicing recommended for production):
If you require specific apps to remain or want to suppress the removal process entirely, you can use an answer file.
The error sysprep failed to remove apps for the current user 0x80073cf2 occurs during the generalization phase of Windows System Preparation (Sysprep). This prevents successful image capture for deployment. The error indicates a critical failure where Sysprep cannot remove provisioned modern (UWP/Store) applications for the built-in administrator or current user context. This paper outlines the root cause, diagnostic steps, and three validated remediation methods.
Search for 0x80073cf2 and the app package name if listed.