Optimize-Offline
Optimize-Offline copied to clipboard
[BUG] Cannot Sysprep after using Optimize-Offline
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
Please complete the following information:
- Image Name: Windows 10 Pro
- Image Build: 18363
Log files setupact.log
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.
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.
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!
Yes, what Alexusson said seems to correct this issue.
Optimize-Offline has never removed files from the System32 directory.
That's so weird, I've tried replacing the file and it never works. I'll have to try it again and see.
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.