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.logfile located in%WINDIR%\System32\Sysprep\Pantherfor 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:
Remove-AppxPackage -Package Microsoft.Winget.Source_2023.- De-provision the package from the system:
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.
- 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.logfile located in%WINDIR%\System32\Sysprep\Pantherfor further details on the Sysprep failure.
- dentify the problematic package: The error message clearly identifies the package as
Are you an IT admin?
Let me know what happens.