Sysprep error problem

Louise Williams 0 Reputation points
2025-10-21T10:30:22.7+00:00

Hi

I'm trying to Sysprep a Windows 11 Pro but I'm getting an error that I can't seem to get past... It seems to pertain to the Winget App Installer itself. The error I'm getting is:

"Error SYSPRP Package Microsoft.Winget.Source_2023.928.926.552_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image."

I've succesfully removed several other errors in the usual way, viz:

Get-AppxPackage -Allusers Microsoft.Winget.Source_2023.930.722.582_neutral__8wekyb3d8bbwe | Remove-AppxPackage

And deprovisioned with:

Get-AppxProvisionedPackage -Online | Where-Object DisplayName -Like "Microsoft.Winget.Source_2023.930.722.582_neutral__8wekyb3d8bbwe" | Remove-ProvisionedAppPackage -OnLine

As I say, this has worked ok to remove other errors/packages but not this particular one! Am I missing something? Any help gratefully received. Thanks

Windows for home | Windows 11 | Microsoft Store
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Restee Miranda 14,005 Reputation points Independent Advisor
    2025-10-21T14:03:29.16+00:00

    Hi there,

    This "Error SYSPRP Package Microsoft.Winget.Source_2023.928.926.552_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image." , is registered for a particular user profile but not universally provisioned for all users on the system. Sysprep's generalize process requires all applications to be in a consistent state for all users, leading to this error. 

    Here are the fixes that you can try.

    • dentify the problematic package: The error message clearly identifies the package as Microsoft.Winget.Source_2023.928.926.552_neutral__8wekyb3d8bbwe.
    • Remove the package for the user:

    Open PowerShell as an administrator and execute the following command:

    Code

        Remove-AppxPackage -Package Microsoft.Winget.Source_2023.928.926.552_neutral__8wekyb3d8bbwe
    
    • De-provision the package from the system:

    Still in PowerShell as an administrator, execute the following command:

    Code

        Remove-AppxProvisionedPackage -Online -PackageName Microsoft.Winget.Source_2023.928.926.552_neutral__8wekyb3d8bbwe
    
    • Run Sysprep: After successfully executing the above commands, without restarting the machine, attempt to run Sysprep again. This targeted removal addresses the specific package causing the conflict.

    Important Considerations:

    • Do not restart the machine: between removing the package and running Sysprep, as a restart might re-register the package or cause other inconsistencies.
    • Ensure administrator privileges: for all PowerShell commands.
    • If the issue persists, carefully review the setupact.log file located in %WINDIR%\System32\Sysprep\Panther for further details on the Sysprep failure.
      • dentify the problematic package: The error message clearly identifies the package as Microsoft.Winget.Source_2023.928.926.552_neutral__8wekyb3d8bbwe.
      • Remove the package for the user:
      Open PowerShell as an administrator and execute the following command: Code
        Remove-AppxPackage -Package Microsoft.Winget.Source_2023.
      
      • De-provision the package from the system:
      Still in PowerShell as an administrator, execute the following command: Code
        Remove-AppxProvisionedPackage -Online -PackageName Microsoft.Winget.Source_2023.
      
      • Run Sysprep: After successfully executing the above commands, without restarting the machine, attempt to run Sysprep again. This targeted removal addresses the specific package causing the conflict.
      Important Considerations:
      • Do not restart the machine: between removing the package and running Sysprep, as a restart might re-register the package or cause other inconsistencies.
      • Ensure administrator privileges: for all PowerShell commands.
      • If the issue persists, carefully review the setupact.log file located in %WINDIR%\System32\Sysprep\Panther for further details on the Sysprep failure.

    Are you an IT admin?

    Let me know what happens.


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.