Hello all! Many of you might have come across this situation atleast once in your lifetime if you are a Windows admin dealing with system imaging often. Sysprep is a wonderful tool that we all love to use when it comes to erase system specific info like SID leaving all the application related stuff intact. This is also very helpful for those who does a lot of template builds. So, in this post we are going to know about how we get around with a Sysprep issue.
Below is the error message you come across when Sysprep fails to run. This mainly occurs because sysprep was run many a times on this machine and image has reached its maximum default times.
To resolve this, open registry editor from the Run prompt as below.
Navigate to the HKEY-LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus and find the GeneralizationState key on the right side. Modify the value to 7 and click OK.
Now navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\SoftwareProtectionPlatform and find the key SkipRearm on the right side of the pane, change the value to 1 and click OK.
Also using the windows explorer, delete the Panther folder from the sysprep folder.
Once done with all the above steps, initiate the Sysprep again.
Sysprep should now run without any issues.
Hope this was informative. Thanks!