本文解决了无法使用此选项在 Windows 7 /generalize 中运行系统准备工具(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 中运行重排进程,请使用以下方法之一:
- 在用于生成自定义 Windows 映像的计算机上运行
Sysprep /generalize。 - 在提升的命令提示符窗口中运行 Slmgr.vbs 脚本。 例如,运行
cscript c:\windows\system32\slmgr.vbs -rearm。
注意
需要管理凭据才能运行重排进程。 在 Windows 映像中,重排进程最多可以运行三次。
数据收集
如果需要 Microsoft 支持方面的帮助,建议按照使用 TSS 针对与部署相关的问题收集信息中所述的步骤收集信息。