Kvz100019 - Getting a sysprep error after preparing an image

Troubleshooting: Getting a sysprep error after preparing an image



Document ID: KVZ100019/ Created on: Jan 23, 2011/ Updated on: Jan 23, 2011



Symptoms



After deploying a sysprepped Windows 7 image you may see the following error message
Windows could not finish configuring the system. To attempt to resume configuration, restart the computer

If you review the Windows\panther\unattendgc\setuperr.log you may see the following entries

2009-12-11 10:22:57, Error [windeploy.exe] Failure occured during online installation. Online installation cannot complete at this time.; hr = 0x8007139f

If you review the windows\panther\unattendgc\setupact.log you may see the following entries

2009-12-11 10:22:57, Info [windeploy.exe] WinDeploy.exe launched with command-line []…
2009-12-11 10:22:57, Info [windeploy.exe] Setup has not completed, adding pending reboot.
2009-12-11 10:22:57, Warning [windeploy.exe] SetupCl has pending operations; blocking deployment process until they've been completed.
2009-12-11 10:22:57, Error [windeploy.exe] Failure occured during online installation. Online installation cannot complete at this time.; hr = 0x8007139f



Cause


Response from Microsoft:
This can occur in the following scenarios

· If an application or driver creates a registry key that contains more than 8kb of data

· If an application or driver creates a registry key with incorrect or corrupt permissions

Some possible causes are

Installation of HP LasterJet 8150 driver which creates the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider\<sid string here>\Printers\Connections\<name of the printer type, location, etc.>!RemotePrinterCache

Installation of 3rd party program that created and or modified the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109110000000000000000F01FEC\Features!VSTAIDEFiles

Installation of Daemon Tools created following registry key with incorrect permissions(Administrators and system did not have Full Control)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\sptd\Cfg

Installation of Lotus Notes or Lotus Communicator created the following registry key that was bigger than 8k
HKEY_LOCAL_MACHINE\test\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-1928666829-3700675070-3932613355-500\Products\BF554AA4EEFBC374AAE0F4AD05F5F67B\Features!Sametime




Resolution


Response from Microsoft:
To resolve this issue you must determine what registry key is causing the issue and then uninstall the application to remove the key or correct the permissions of the registry key.

This can be done by uninstalling software in groups to narrow down which application or driver is creating the registry key.

BTW, please visit the following KB as well:

A Windows 7 or a Windows Server 2008 R2 image deployment process stops when you try to deploy the image on another computer

Windows could not finish configuring the system. To attempt to resume configuration, restart the computer

Reference:
http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/a113e858-8f9f-414a-8391-53bffb208036