Error message when you run the “sysprep /generalize” command on a Windows Vista-based computer: “A fatal error occurred while running sysprep”
When you run the sysprep /generalize command on a Windows Vista-based computer, you receive the following error message:
A fatal error occurred while running sysprep.
Additionally, an error message that resembles the following may be logged in the Setuperr.log file:
SYSPRP LaunchDll:Failure occurred while executing ‘C:\Windows\system32\msdtcprx.dll,SysPrepDtcCleanup’, returned error code -2146434815[gle=0x000000b7]
This error message is logged if you change the value of the following registry entry to 7:
This problem occurs because Microsoft Distributed Transaction Coordinator (MS DTC) is corrupted.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs.
To resolve this problem, reinstall MS DTC. To do this, follow these steps:
|1.||Click Start, type regedit in the Start Search box, and then press ENTER.
If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.
|2.||Locate and then click the following registry subkey:
|3.||Right-click the GeneralizationState registry entry, click Modify, type 7 in the Value data box, and then click OK.|
|4.||Run the following command at a command prompt:
|5.||Run the following command at a command prompt:
Steps to reproduce the problem
On a computer on which MS DTC is corrupted, run the following command at a command prompt:
|•||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|
Microsoft Knowledge Base Article