Sysprep fails on Windows 11 version 24H2

Beljaars Erik 0 Reputation points
2025-02-15T09:48:45.5633333+00:00

2025-02-15 10:04:55, Info SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.

2025-02-15 10:04:55, Error power

2025-02-15 10:04:55, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2025-02-15 10:04:55, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2025-02-15 10:04:55, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2

2025-02-15 10:04:55, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2

2025-02-15 10:04:55, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2

2025-02-15 10:04:55, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2

2025-02-15 10:04:55, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

2025-02-15 10:04:55, Info [0x0f0052] SYSPRP Shutting down SysPrep log

2025-02-15 10:04:55, Info [0x0f004d] SYSPRP The time is now 2025-02-15 10:04:55

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
937 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,816 questions
Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,203 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 21,276 Reputation points
    2025-02-17T01:46:33.6633333+00:00

    Hi,

    It looks like you're encountering a common issue with Sysprep on Windows 11 version 24H2. The error code 0x80073cf2 typically indicates a problem with removing certain Microsoft Store apps that are installed for the current user but not provisioned for all users.

    Here are some steps you can try to resolve this issue:

    1. Identify the problematic app: Check the Sysprep logs to identify which app is causing the issue. You can find the logs in C:\Windows\System32\Sysprep\Panther\setupact.log.
    2. Remove the app: Once you've identified the problematic app, you can remove it using PowerShell. For example, if the issue is with the Microsoft.WidgetsPlatformRuntime package, you can use the following command:
         Remove-AppxPackage -Package Microsoft.WidgetsPlatformRuntime_1.6.1.0_x64__8wekyb3d8bbwe
      
      Make sure to replace the package name with the one causing the issue on your system.
    3. Retry Sysprep: After removing the problematic app and ensuring it doesn't reinstall, try running Sysprep again.

    Let me know if you need further assistance!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.