Hello Wayel Babiker,
Thank you for posting in Q&A forum.
Here are some steps you can try to resolve this:
1.Check for Installed Packages:
Open PowerShell as an administrator and run the following command to list all installed packages for all users:
Get-AppxPackage -AllUsers | Where-Object {$_.PackageFullName -like "Microsoft.WidgetsPlatformRuntime"} | Format-List -Property PackageFullName,PackageUserInformation
2.Remove the Package for All Users:
If the package is listed, you can try removing it for all users with:
Remove-AppxPackage -Package <PackageFullName> -AllUsers
Replace <PackageFullName> with the actual package name you found in the previous step.
3.Remove Provisioned Package:
Next, remove the provisioned package using:
Remove-AppxProvisionedPackage -Online -PackageName <PackageFullName>
4.Re-run Sysprep:
After removing the package, try running Sysprep again.
If these steps don't resolve the issue, you might need to check the Sysprep logs for more details. The logs are located at %WINDIR%\System32\Sysprep\Panther\setupact.log.
Reference:
Sysprep fails with Microsoft Store apps - Windows Client
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.