question

BryanMcGrail-5177 avatar image
0 Votes"
BryanMcGrail-5177 asked JennyFeng-MSFT commented

Sysprep Windows 10 20H2 error

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-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@BryanMcGrail-5177
Hi,

Just checking in to see if the information provided was helpful.

If the reply helped you, please remember to accept as answer.
If no, please reply and tell us the current situation in order to provide further help.

0 Votes 0 ·
JennyFeng-MSFT avatar image
0 Votes"
JennyFeng-MSFT answered

@BryanMcGrail-5177
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://docs.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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BryanMcGrail-5177 avatar image
0 Votes"
BryanMcGrail-5177 answered JennyFeng-MSFT commented

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@BryanMcGrail-5177
Hi,
Not only pause updates, all the updates need to be completed to ensure that there are no programs that need to be updated on the computer.

0 Votes 0 ·