Sysprep Issue with Windows 11 24 H2

SSE@TUE 140 Reputation points
2025-08-13T14:08:13.7933333+00:00

Hi,

I'm trying to Sysprep a Windows 11 Enterprise 24H2 Installation with many installed Applications.

I am getting always fails because of this error:

######################################################################

SYSPRP Package Microsoft.DesktopAppInstaller_1.25.199.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

SYSPRP Failed to remove apps for the current user: 0x80073cf2.

SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2

SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2

SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2

[0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2

[0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

##########################################################################

I ran the following command wit PS

Get-AppxPackage -AllUsers Microsoft.DesktopAppInstaller_1.25.199.0_x64__8wekyb3d8bbwe | Remove-AppxPackage

and:

Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "Microsoft.DesktopAppInstaller_1.25.199.0_x64__8wekyb3d8bbwe" | Remove-ProvisionedAppPackage -Online

and I try with following command too

Import-Module Appx

Import-Module Dism

Get-AppxPackage -AllUsers | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation

Remove-AppxPackage -Package Microsoft.DesktopAppInstaller_1.25.199.0_x64__8wekyb3d8bbwe

Remove-AppxProvisionedPackage -Online -PackageName Microsoft.DesktopAppInstaller_1.25.199.0_x64__8wekyb3d8bbwe

###############################################################

No above command help me.

Has anyone any Idea?

I need really help

Thank you

Nick

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Domic Vo 240 Reputation points Independent Advisor
    2025-08-14T09:14:56.0066667+00:00

    Dear Nick,

    This error typically occurs when certain Microsoft Store apps—like DesktopAppInstaller—are installed for a user but not provisioned for all users. Sysprep requires that all Appx packages be either fully provisioned or removed entirely, and this mismatch causes the validation to fail.

    This issue has been widely reported with Windows 11 24H2 builds, and Microsoft has acknowledged it in this Q&A thread.

    Please try the following steps:

    1. Boot into Audit Mode
      • Press Ctrl + Shift + F3 during setup or use:sysprep /audit /rebootRemove the Problematic App in Audit Mode
      • Open PowerShell as Administrator and run: powershell
    2. Verify Removal
      • Confirm the app no longer appears in:Get-AppxPackage -AllUsers Get-AppxProvisionedPackage -Online
    3. Run Sysprep Again
      • Once confirmed, run:sysprep /generalize /oobe /shutdown

    I hope this helps.

    Best regards,

    Domic Vo


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.