Optimize-Offline icon indicating copy to clipboard operation
Optimize-Offline copied to clipboard

[BUG] Cannot Sysprep after using Optimize-Offline

Open BirdsofaFeather opened this issue 5 years ago • 6 comments

Describe the bug Unable to run Sysprep when using any version of Optimize-Offline above 3.2.7.5. Using 3.2.7.5, I can successfully Sysprep and capture the image but the newer versions produce an error.

Screenshots SysprepFailure

Please complete the following information:

  • Image Name: Windows 10 Pro
  • Image Build: 18363

Log files setupact.log

BirdsofaFeather avatar Jan 16 '20 15:01 BirdsofaFeather

This is an issue that occurs with a mismatch with the 'spopk.dll' file in the 'C:\Windows\System32' directory.

Note that Optimize-Offline does not touch any of these types of files in the 'C:\Windows\System32' directory.

EDIT

According to the Microsoft forums, this seems to be an issue with specific builds of 1903-1909.

DrEmpiricism avatar Feb 03 '20 23:02 DrEmpiricism

I have tried the fixes mentioned in the post and it doesn't work. Replacing the "spopk.dl"l still causes the same issue.

I performed an experiment and used the same Image Build using both 3.2.7.5 and 4.0.0.1. With 4.0.0.1 I get a sysprep failure but when using 3.2.7.5 sysprep works.

BirdsofaFeather avatar Feb 04 '20 01:02 BirdsofaFeather

Hi,

I had this issue a couple of times and each time I resolved it successfully by replacing and copying the "spopk.dll" from the host machine to the live environment! It will work (100%)! Take ownership of the relevant file before that. You can even copy the .dll file from the lower Windows version!

Alexusson avatar Feb 05 '20 09:02 Alexusson

Yes, what Alexusson said seems to correct this issue.

Optimize-Offline has never removed files from the System32 directory.

DrEmpiricism avatar Feb 06 '20 00:02 DrEmpiricism

That's so weird, I've tried replacing the file and it never works. I'll have to try it again and see.

BirdsofaFeather avatar Feb 06 '20 01:02 BirdsofaFeather

Had the same issue with my 1909 optimize-offline image. I tried the same as Alexusson and it worked, BUT... it didn't work when i used ver1909 spopk.dll from my host machine... I then used the spopk.dll file from a 1809 win2019 server i had, and then it worked.

Bear-LB avatar Mar 11 '20 13:03 Bear-LB