Windows 10 22H2 Sysprep Error 0x80073cf2 confirmed by Microsoft and offers a workaround

Microsoft has released a new error message for Windows 10 that affects the Sysprep function. Since the November update KB5032278 and following, Sysprep error 0x80073cf2 can occur. This is described under KB5034912. Sysprep is a function to prepare an installation media. So install/remove drivers. Likewise other presets.

The error message is: Sysprep was unable to verify your Windows installation. Check the log file at %WINDIR%system32SysprepPanthersetupact.log for details. After resolving the issue, use Sysprep to re-verify your installation.”

In the setupact.log you then look for the entry “0x80073cf2”. If it is not there, then you are not affected by it. Otherwise, text similar to this may appear: “Microsoft.MicrosoftEdge_44.19041.3636.0_neutral___8wekyb3d8bbwe was installed for one user but not deployed to all users. This package does not work properly in sysprep SYSPRP could not remove applications for current user: 0x80073cf2”

Microsoft offers a workaround for this, but is already working on the problem.

  • Open PowerShell (administrator) and replace PackageFullName with the faulty application in the command
Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like '' } | Format-List -Property Name, PackageFullName, PackageUserInformation, InstallLocation, SignatureKind
  • Here search for PackageUserInformation and add Installed(pending removal). Example:
PackageUserInformation : {S-1-5-21-1115194164-3625103809-2169974439-1002 [S-1-5-21-1115194164-3625103809-2169974439-1002]: Installed(pending removal)} 
  • If the image is affected, then (replace PackageFullName with the faulty application in the command)
Get-Appxpackage  -AllUsers | Remove-Appxpackage -AllUsers

Sysprep can now continue. Sysprep -> System Cleanup Action -> Out-of-Box Experience (OOBE) -> Generalize