An error message occurs when you run "Sysprep /generalize" in Windows Vista or Windows 7: "A fatal error occurred while trying to Sysprep the machine"

Article translations Article translations
Article ID: 929828 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

When you try to run the System Preparation Tool (Sysprep) in Windows Vista or Windows 7, and you use the /generalize option, you may receive the following error message:

A fatal error occurred while trying to Sysprep the machine.

The Setuperr.log file may contain lines that resemble the following:
Error [0x0f0082] SYSPRP LaunchDll: Failure occurred while executing 'C:\Windows\System32\slc.dll, SLReArmWindows', returned error code -1073425657
Error [0x0f0070] SYSPRP RunExternalDlls: An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = -1073425657
Error [0x0f00a8] SYSPRP WinMain: Hit failure while processing sysprep generalize providers; hr = 0xc004d307

Note
The Setuperr.log file is located in the \Windows\System32\Sysprep\Panther folder.

CAUSE

This error may occur if the Windows Software Licensing Rearm program has run more than three times in a single Windows image. 

RESOLUTION

To resolve this issue, you must rebuild the Windows image.

WORKAROUND

To work around this issue, use the <SkipRearm> setting in an XML answer file (Unattend.xml) to skip the Rearm process when you build the Windows image.

The following text is an example of an XML answer file for Windows Vista:
<settings pass="generalize">
        <component name="Microsoft-Windows-Security-Licensing-SLC" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SkipRearm>1</SkipRearm>
        </component>
    </settings>
Note

You must make sure that the <SkipRearm> setting is removed from the final unattended file that is used to deploy computers in a production environment. If <SkipRearm> is not removed from the unattended file that is used to deploy computers in a production environment, the KMS current client count does not increase for new clients that are added to the network.


The below Technet article describes skipRearm tag of Microsoft-Windows-Security-Licensing-SLC component

http://technet.microsoft.com/en-us/library/cc722350(WS.10).aspx


The following text is an example of an XML answer file for Windows 7:
<settings pass="generalize">
        <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SkipRearm>1</SkipRearm>
        </component>
    </settings>
 

The below Technet article describes skipRearm tag of Microsoft-Windows-Security-SPP component

http://technet.microsoft.com/en-us/library/ff716103(WS.10).aspx

MORE INFORMATION

The Windows Software Licensing Rearm program restores the Windows system to the original licensing state. All licensing and registry data related to activation is either removed or reset. Also, any grace period timers are reset.

To run the Rearm process in Windows Vista and Windows 7, use one of the following methods:  
  • Run Sysprep /generalize on the computers that are used to build the custom Windows Vista image.
  • Run the Slmgr.vbs script in an elevated Command Prompt window. For example, run cscript c:\windows\system32\slmgr.vbs –rearm.
Note Administrative credentials are required to run the Rearm process. The Rearm process can be run a maximum of three times in a Windows Vista image. For more information about the System preparation Tool, visit the following link:

299840 How to use Sysprep with Windows Product Activation or Volume License Media to deploy Windows XP

Properties

Article ID: 929828 - Last Review: September 23, 2011 - Revision: 2.0
APPLIES TO
  • Windows Vista Enterprise 64-bit Edition
  • Windows Vista Ultimate 64-bit Edition
  • Windows Vista Business
  • Windows Vista Business 64-bit Edition
  • Windows Vista Enterprise
  • Windows Vista Ultimate
  • Windows 7 Enterprise
  • Windows 7 Ultimate
  • Windows Server 2008 Standard
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Datacenter
  • Windows Server 2008 R2 Standard
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Datacenter
Keywords: 
kbexpertisebeginner kbtshoot kbprb KB929828

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com