Error Sysprep on Windows 10 20H2

jose luis briones laguna 1 Reputation point
2021-02-09T23:59:29.28+00:00

Error sysprep:
2021-02-09 17:32:34, Error SYSPRP MSS: Error 0x5 occurred while creating reg key SOFTWARE\Microsoft\Windows Search\PreventFromStart.[gle=0x0000007a]
2021-02-09 17:32:34, Error SYSPRP MSS:MSSrch_SysPrep_Cleanup _CreateBlockingRegKey failed.[gle=0x0000007a]
2021-02-09 17:32:34, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'MSSrch_SysPrep_Cleanup' from C:\Windows\System32\mssrch.dll; dwRet = 0x5
2021-02-09 17:32:34, Error SYSPRP SysprepSession::ExecuteAction: Failed during sysprepModule operation; dwRet = 0x5[gle=0x00000006]
2021-02-09 17:32:34, Error SYSPRP SysprepSession::ExecuteInternal: Error in executing action for WindowsSearchEngine; dwRet = 0x5[gle=0x00000006]
2021-02-09 17:32:34, Error SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x5
2021-02-09 17:32:34, Error SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x5
2021-02-09 17:32:34, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x5
2021-02-09 17:32:34, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070005

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,560 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,081 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,899 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jenny Feng 14,146 Reputation points
    2021-02-10T02:49:53.71+00:00

    Hi,
    Run these from a recovery command prompt:
    del "C:\Program Files\WindowsApps*."
    del "C:\ProgramData\Microsoft\Windows\AppRepository*.
    "

    Reboot, then sysprep.
    Hope above information can help you.

    ============================================
    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. prmanhas-MSFT 17,886 Reputation points Microsoft Employee
    2021-02-26T09:48:07.41+00:00

    @jose luis briones laguna Apologies for delay in response and all the inconvenience caused because of the issue.

    Is this a VM that is already part of WVD and domain joined? If yes, we don’t recommend to run sysprep in it.
    Please use sysprep only to customize a marketplace image in a standalone VM.

    Hope it helps!!!

    Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.