Share via

Can you fix Sysprep Generalize so that it works with Windows 10 22H2 out of the box?

Ralph Buchfelder 0 Reputation points
2025-10-27T09:40:04.11+00:00

When running Sysprep.exe on a current Microsoft Windows 10 22H2 instance I get various errors in c:\windows\system32\sysprep\panther\setuperr.log (which are well-known to administrators like "app was installed for a user, but not provisioned for all users"). Usually I simply remove failing AppX packages. Lately I (summer 2025) I have encountered endless Sysprep Generalization after

SYSPRP Entering SysprepGeneralize (Appx).

SYSPRP All appx packages were verified to be inbox or alluser installed.

I was able to track this down to some bad Microsoft and third-party apps which prevent this step. Here's what I do:

  1. Run Microsoft Store, click Store-Settings and interrupt automatic updates for at least a week (or until you run sysprep)
  2. Run Win11Debloat (available at github) and select option to remove apps, then check "show installed apps" and select everything except for Windows.Store and Microsoft.Edge
  3. Powershell to remove unwanted App-Packages causing errors

$ErrorActionPreference = 'silentlycontinue'

Start-Transcript -Path "C:\users\AppX.log"

$UninstallApps = @(

    "Microsoft.LanguageExperiencePack"

    "Microsoft.BingSearch"

    "AdobeNotificationClient"

    "AcrobatNotificationClient"

    "MicrosoftWindows.CrossDevice"

    "Microsoft.Winget.Source"

    )

    foreach ($App in $UninstallApps) {

        Get-AppxPackage -Name $App | Remove-AppxPackage

        Get-AppxPackage -Name $App | Remove-AppxPackage

       

        Get-AppxPackage -Name $App -AllUsers | Remove-AppxPackage

        Get-AppxPackage -Name $App -AllUsers | Remove-AppxPackage

       

        Get-AppxPackage -Name $App -AllUsers | Remove-AppxPackage -AllUsers

        Get-AppxPackage -Name $App -AllUsers | Remove-AppxPackage -AllUsers

       

        Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $App | Remove-AppxProvisionedPackage -Online

        Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $App | Remove-AppxProvisionedPackage -Online

       

        Write-Output "Trying to remove $App."

    }

Stop-Transcript

  1. Optionally remove all local user accounts / leave only one admin account (most probably the integrated administrator when in system audit mode) OR perform all steps above with every user on your machine.

My question:
Can you guys at Microsoft please help us by either fixing sysprep generalization to overcome those AppX issues or by adding some quality measures to your AppX developments process regarding sysprep prior to global deployment?

Thank you so much in advance....

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

1 answer

Sort by: Most helpful
  1. Chen Tran 10,310 Reputation points Independent Advisor
    2025-10-27T11:03:39.6166667+00:00

    Hello Ralph,

    Thank you for posting question on Microsoft Windows Forum.

    Based on your query of fixing sysprep generalization to overcome those AppX issues or adding some quality measures to your AppX developments process regarding sysprep prior to global deployment. This request is essentially a feature request or a bug report directed at Microsoft's Windows Development Team.

    The following are the recommended ways to communicate this issue or your suggestions to abovementioned team.

    1.Using the Feedback Hub App.

    2.Contact Microsoft Premier Support.

    • If your organization has an Enterprise Agreement or a Premier Support contract with Microsoft, you can open a Premier/Unified Support case. This is often the fastest and most direct path to getting visibility with the product team.

    Hope the above information is helpful!

    Was this answer helpful?


Your answer

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