共用方式為


執行 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 回應檔案 (Unattend.xml) 中的 SkipRearm> 設定,在建置 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 中執行 Rearm 程式,請使用下列其中一種方法:

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

注意

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

資料收集

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