...
Image publishing fails with sysprep Errors or times out.Provisioned desktop stuck with sysprep error on console screen.
In these cases, windows Sysprep process is failed with critical error, and you need to resolve related error, publish the image again.In some cases, you might need to rebuild the image. Please refer below steps and Microsoft Knowledge Base articles and forums to troubleshoot the problem.
Step1 : Check the Sysrep logs for errors Sysprep logs location (Image publishing) Directory: %WINDIR%\System32\Sysprep\Panther\ Filenames: setupact.log, setuperr.log Sysprep logs location (After clone failures) Directory: %WINDIR%\\Panther\ Directory: %WINDIR%\\Panther\UnattendGC Filenames: setupact.log, setuperr.log Windows Event Logs (Application and System event logs) : How To Diagnose System Problems with Event Viewer in Microsoft Windows 2000. Step 2: The probable cause of failure will be in one of the log files (setuperr.log) as mentioned above. Please find the details of errors and check for it on Microsoft Knowledge base and forums.If there are no error is Sysprep logs, please check event logs for any error or warning related to Sysprep process (Sysprep.exe). It is possible some AD policies or antivirus tools are blocking execution. Known Sysrep Errors Symptom:Sysprep fails after you remove or update Microsoft Store apps that include built-in Windows imagesErrors:You will see below errors in setuperr.log fileYYYY-MM-DD HH:MM:SS, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2. <Date> <Time>,Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.Resolution:Sysprep fails after you remove or update Microsoft Store apps that include built-in Windows imagesSymptom:Windows could not finish configuring the system. To attempt to resume configuration, restart the computer.Errors:You will see below error in setuperr.log fileYYYY-MM-DD HH:MM:SS, Error [windeploy.exe] Failure occurred during online installation. Online installation cannot complete at this time.; hr = 0x8007139fResolution:A Windows 7 or a Windows Server 2008 R2 image deployment process stops when you try to deploy the image on another computer Symptom:Sysprep failed with error as windows reboot is pending.Errors:You will see below error in setuperr.log fileYYYY-MM-DD HH:MM:SS, Error SYSPRP spopk.dll:: There are one or more Windows updates that require a reboot. To run Sysprep, reboot the computer and restart the application.[gle=0x000036b7] Resolution:Reboot the image and publish it. Note: Please check Microsoft knowledge Base articles and forums on setup and sysprep problems and solutions.