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:
- Run Microsoft Store, click Store-Settings and interrupt automatic updates for at least a week (or until you run sysprep)
- 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
- 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
- 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....