執行 Sysprep /generalize 時,嘗試 Sysprep 機器錯誤時發生嚴重錯誤

本文解決您無法使用 /generalize 選項在 Windows 7 中執行系統準備工具 (Sysprep) 的問題。

適用於:Windows 7 Service Pack 1,Windows Server 2012 R2
原始 KB 編號: 929828

徵狀

當您嘗試在 Windows 7 中執行 Sysprep,並使用 /generalize 選項時,您可能會收到此錯誤訊息:

嘗試 Sysprep 計算機時發生嚴重錯誤。

Setuperr.log檔案可能包含類似下列的行:

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

注意事項

Setuperr.log檔案位於 \Windows\System32\Sysprep\Panther 資料夾中。

原因

如果 Windows 軟體授權後置程式已在單一 Windows 映射中執行三次以上,可能會發生此錯誤。

解決方案

若要解決此問題,您必須重建 Windows 映像。

因應措施

若要解決此問題,請在 XML 回應檔案中使用 <SkipRearm> 設定, (Unattend.xml) 在建置 Windows 映射時略過後置程式。

下列文字是適用於 Windows 7 的 XML 回應檔案範例:

<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>

注意事項

您必須確定 <SkipRearm> 設定已從用於在生產環境中部署電腦的最終自動檔案中移除。 如果 <SkipRearm> 未從用於在生產環境中部署電腦的自動檔案中移除,則新增至網路的新用戶端的 KMS 目前用戶端計數不會增加。

如需 Microsoft-Windows-Security-Licensing-SLC 元件標籤卷標的詳細資訊 skipRearm ,請參閱 SkipRearm

如需 Microsoft-Windows-Security-SPP 元件捲標的詳細資訊 skipRearm ,請參閱 Microsoft-Windows-Security-SPP

其他相關資訊

Windows 軟體授權後置程式會將 Windows 系統還原為原始授權狀態。 所有與啟用相關的授權和登錄數據都會移除或重設。 此外,也會重設任何寬限期定時器。

若要在 Windows 7 中執行後置程式,請使用下列其中一種方法:

  • Sysprep /generalize在用來建置自訂 Windows 映像的電腦上執行 。
  • 在提升許可權的命令提示字元視窗中執行 Slmgr.vbs 腳本。 例如,執行 cscript c:\windows\system32\slmgr.vbs -rearm

注意事項

需要系統管理認證,才能執行後置程式。 在 Windows 映射中,Rem 進程最多可以執行三次。

資料收集

若您需要 Microsoft 支援,建議您按照使用 TSS 收集部署相關問題的資訊所述步驟來收集資訊。