Sysprep error windows 10 microsoft.bingsearch

Kike 5 Reputation points
2024-12-21T12:04:34.77+00:00

Hello, I am trying to perform a sysprep of an installation of a Windows 10 professional x64 bit, and I get the typical error that cannot validate the installation, the error in the log that it gives is the following:
2024-12-20 14:16:12, Error SYSPRP Package Microsoft.BingSearch_1.0.92.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2024-12-20 14:16:12, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2024-12-20 14:16:12, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2024-12-20 14:16:12, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2

2024-12-20 14:16:12, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2

2024-12-20 14:16:12, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2

2024-12-20 14:16:12, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2

2024-12-20 14:16:12, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

After doing a little research, I performed these commands from PowerShell, and I restarted the computer (it is outside of any domain, it is in a group, and it still does not launch the sysprep, it gives the error again), I am using a local user in the machine in a group with administrator privileges:

Import-Module Appx

Import-Module Dism

Get-AppxPackage -AllUsers | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation Remove-AppxPackage -Package Microsoft.BingSearch_1.0.92.0_x64__8wekyb3d8bbwe

Remove-AppxProvisionedPackage -Online -PackageName Microsoft.BingSearch_1.0.92.0_x64__8wekyb3d8bbwe**

Even so, it still gives me the error that it cannot validate the installation.**

Any suggestions if I'm missing any other commands so I can perform the sysprep?

Thank you very much for the help in advance.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,704 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Hania Lian 20,276 Reputation points Microsoft Vendor
    2024-12-23T08:36:12.39+00:00

    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.

    0 comments No comments

  2. Kike 5 Reputation points
    2024-12-23T16:16:46.78+00:00

    I finally figured out what the problem is.

    I entered a domain to install all the software, removed the PC from the domain but did not delete the domain administrator user, which caused this error.

    After deleting the domain administrator user profile from the local administrator of the machine, the sysprep was executed correctly.

    Thanks for the reply.

    You can close the thread if you want, in case the information is useful to other users.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.