Sysprep Windows 10 20H2 error

Bryan McGrail 1 Reputation point
2021-03-25T23:10:52.407+00:00

Hello everyone,

I have trying to sysprep a machine, but I keep getting the following error. Has anyone else been receiving this error? I have tried to replace the Spopk file, but still not working. (File location: c:\windows\system32 renamed spopk.dll) Any guidance would be greatly appreciated.

SYSPRP Sysprep_Clean_Validate_Opk: Audit mode can't be turned on if there is an active scenario.; hr = 0x800F0975
SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x975
SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x975
RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x975
RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x975
WinMain:Hit failure while pre-validate sysprep cleanup internal providers; hr = 0x80070975

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
6,029 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jenny Feng 13,666 Reputation points
    2021-03-26T03:41:47.757+00:00

    @Bryan McGrail
    Hi,
    Firstly, make sure there are no updates to install on your computer.
    Run Windows Updates repeatedly until no updates are left.

    If you look at the Sysprep error logs, it could show you which/if app is causing issues. Then you can use the commands to unprovision it.
    https://learn.microsoft.com/en-us/powershell/module/dism/remove-appxprovisionedpackage?view=win10-ps
    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.

    No comments

  2. Bryan McGrail 1 Reputation point
    2021-03-26T18:11:31.99+00:00

    Hello Jenny,

    Thank you for the information. Unfortunately I am not getting an error due to an App Package. The first error in the error log is:

    SYSPRP Sysprep_Clean_Validate_Opk: Audit mode can't be turned on if there is an active scenario.; hr = 0x800F0975

    I have tried to change the Spopk file, but that did nothing. I also tried pausing updates, but that did not resolve the issue either.