U3F1ZWV6ZTM5MjY5NTAwMTc2NjUzX0ZyZWUyNDc3NDU5NjM3ODk0NQ==

# Step 1: Remove ALL provisioned packages Get-AppxProvisionedPackage -Online | Remove-AppxProvisionedPackage -Online -AllUsers Get-AppxPackage -AllUsers | Remove-AppxPackage -AllUsers Step 3: Re-register inbox apps (re-adds necessary system apps) Add-AppxPackage -DisableDevelopmentMode -Register "$env:SystemRoot\SystemApps*\AppxManifest.xml" Step 4: Block Store auto-install during OOBE (if desired) reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f

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.

# 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:

dism /online /remove-provisionedappxpackage /packagename:<PackageName> If above fails, execute a complete app package reset:

Document ID: WIN-SYSPREP-009 Severity: High (Image preparation blocker) Applies to: Windows 10/11 (1809 and later), Windows Server 2019/2022 1. Executive Summary 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. 2. Error Description & Context When executing sysprep /generalize /oobe /shutdown , the process validates that all provisioned apps can be removed for the current user. Error 0x80073cf2 translates to: ERROR_APPPACKAGE_INTERACTION_NOT_ALLOWED – The interaction with the app package is not allowed because it is blocked by policy or system constraints. Full typical error log excerpt (from %WINDIR%\System32\Sysprep\Panther\setuperr.log ):

| Best Practice | Implementation | |---------------|----------------| | during image build. | Use local administrator only. | | Avoid opening modern apps (Settings, Photos, Camera, etc.) before Sysprep. | Do not launch any UWP app. | | Remove consumer app provisioned packages early in build sequence. | Run removal script post-update, pre-Sysprep. | | Do not sysprep more than 3 times on same image without refresh. | Use slmgr /dlv to check reset count; rebuild after 3 attempts. | | Use CopyProfile carefully (unattend.xml). | Set to false if modern apps are present. | 7. Conclusion Error 0x80073cf2 during Sysprep arises from incompatible user or machine state with provisioned UWP apps. The most common fix is removing non‑Microsoft provisioned packages and clearing user‑installed modern apps. For heavily customized images, a complete app reset (Section 5.3) is effective. Following the prevention guidelines ensures Sysprep completes successfully for enterprise deployment.

Remove-AppxProvisionedPackage -Online -PackageName <FullPackageName> If removal fails, force removal from the image (offline servicing recommended for production):