Hello,The errors you are encountering suggest that there is a user-installed app that is not provisioned for all users, which is causing Sysprep to fail. The Sysprep tool does not support the generalized image if any of the modern apps are installed for a specific user and not provisioned for all users.
From the errors, it seems like you tried to remove the Microsoft.BingSearch package, however, there might be a typo or an issue with the command you attempted to use. The command should be:
Get-AppxPackage -AllUsers | Where-Object {$_.PackageFullName -like "Microsoft.BingSearch"} | Remove-AppxPackage
This command finds all instances of the Microsoft.BingSearch app installed for any user and removes them.
If you also need to remove the provisioned package (which is a template for new users), you should use this command:
Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like "Microsoft.BingSearch"} | Remove-AppxProvisionedPackage -Online
Please note that these commands must be run from an elevated PowerShell prompt (Run as Administrator).
After running the above commands, you should restart the computer and attempt to run Sysprep again.
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.