本文提供了一个解决方案,用于解决从非 UEFI 计算机捕获映像时,无法将基于 Windows 8.1 的映像部署到 UEFI 计算机的问题。
适用于: Windows 8.1原始 KB 数: 2952359
现象
假设你有一个从非 UEFI 计算机捕获的 Windows 8.1 映像。 将映像部署到 UEFI 计算机后,无法在 UEFI 计算机上生成 Windows 恢复环境(WinRE)。
出现此问题时,setupact.log文件中会记录类似于以下内容的消息。 这些消息指示设置过程找不到暂存的 WinRE 映像,并且无法生成 WinRE:
<DateTime>, Info [setup.exe] WinReInstallOnTargetOS Start WinRE 安装。 <DateTime>, Info [setup.exe] winreCheckRegKeyTest 挂钩 (S) 存在或已启用 <DateTime>, Info [setup.exe] WinReInstallOnTargetOS 系统设置正在进行中。 <DateTime>,信息 [setup.exe] WinReInstallOnTargetOS 检查下层 WinRE 安装。 <DateTime>, Info [setup.exe] ReAgentXMLParser::P arseConfigFile (xml 文件: \Recovery\ReAgentOld.xml) 返回0X3 <DateTime>, Info [setup.exe] ReAgentConfig::P arseConfigFile 返回的 0x3 <DateTime>,信息 [setup.exe] WinReInstallOnTargetOS 获取当前的 WinRE 配置。 <DateTime>, Info [setup.exe] WinReInstallOnTargetOS 禁用额外的 ReAgentConfig BCD 检查旧版设置。 <DateTime>、Info [setup.exe] WinReInstallOnTargetOS 未指定源 winre.wim。 检查暂存 winre.wim。 <DateTime>,信息 [setup.exe] WinReInstallOnTargetOS 搜索 OEM Winre.wim <DateTime>, Info [setup.exe] 在搜索 OEM winre.wim 时0X2 WinReInstallOnTargetOS 错误 <DateTime>, Warning [setup.exe] WinReInstallOnTargetOS (WinRE)WinREInstall() 返回 FALSE, gle = 0x64E
原因
出现此问题的原因是 ImageLocation 路径标记设置为 \Recovery\WindowsRE 值,并且 winREStaged 状态标记在Reagent.xml文件中设置为 1。 有关详细信息,请转到 详细信息 部分。
解决方法
若要解决此问题,请使用以下一种方法:
- 使用从 UEFI 计算机捕获的 Windows 8.1 映像部署到 UEFI 计算机。
- 通过进行以下更改,更改捕获的 .wim 文件中位于 \Windows\System32\Recovery\Reagent.xml 路径中的Reagent.xml文件:
- 使用“”删除 ImageLocation 路径标记的值。
- 将 WinREStaged 状态标记的值设置为 0。
例如,按如下所示更改 XML 文件:
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<WindowsRE version="2.0">
<WinreBCD id=""></WinreBCD>
<WinreLocation path="" id="0" offset="0"></WinreLocation>
<ImageLocation path="" id="0" offset="0"></ImageLocation>
<PBRImageLocation path="" id="0" offset="0" index="0"></PBRImageLocation>
<PBRCustomImageLocation path="" id="0" offset="0" index="0"></PBRCustomImageLocation>
<InstallState state="0"></InstallState>
<OsInstallAvailable state="0"></OsInstallAvailable>
<CustomImageAvailable state="0"></CustomImageAvailable>
<WinREStaged state="0"></WinREStaged>
<ScheduledOperation state="4"></ScheduledOperation>
<OperationParam path=""></OperationParam>
<OsBuildVersion path=""></OsBuildVersion>
<OemTool state="0"></OemTool>
</WindowsRE>
详细信息
Reagent.xml 文件的示例
使用 Microsoft Deployment Toolkit (MDT) 2013 从非 UEFI 计算机捕获 Windows 8.1 映像后,WIM 映像中的 \Windows\System32\Recovery\Reagent.xml 文件可能如下所示:
<?xml version='1.0' encoding='utf-8'?>
<WindowsRE version="2.0">
<WinreBCD id="{00000000-0000-0000-0000-000000000000}"/>
<WinreLocation path="" id="0" offset="0" guid="{00000000-0000-0000-0000-000000000000}"/>
<ImageLocation path="\Recovery\WindowsRE" id="4238117423" offset="1048576" guid="{00000000-0000-0000-0000-000000000000}"/>
<PBRImageLocation path="" id="0" offset="0" guid="{00000000-0000-0000-0000-000000000000}" index="0"/>
<PBRCustomImageLocation path="" id="0" offset="0" guid="{00000000-0000-0000-0000-000000000000}" index="0"/>
<InstallState state="0"/>
<OsInstallAvailable state="0"/>
<CustomImageAvailable state="0"/>
<IsAutoRepairOn state="1"/>
<WinREStaged state="1"/>
<OperationParam path=""/>
<OsBuildVersion path="9600.16384.amd64fre.winblue_rtm.130821-1623"/>
<OemTool state="0"/>
<IsServer state="0"/>
<DownlevelWinreLocation path="" id="0" offset="0" guid="{00000000-0000-0000-0000-000000000000}"/>
<ScheduledOperation state="4"/>
</WindowsRE>
在此文件中,WinRE 映像位置设置为路径 \Recovery\WindowsRE,WinREStaged 设置为 1。 只有在非 UEFI 计算机上部署这些设置时,这些设置才能正常工作。 如果将映像与此 xml 文件一起使用,在 UEFI 计算机上(如 Surface Pro 或 Surface Pro 2)上生成 OS,则无法生成 WinRE 环境。 由于缺少 WinRE 环境,无法启用 BitLocker。
禁用 WinRE 时 BitLocker 不起作用
禁用 WinRE 后,无法启用 BitLocker,并且收到如下所示的错误消息:
此电脑不支持在启动时输入 BitLocker 恢复密码。 要求管理员配置 Windows 恢复环境,以便可以使用 BitLocker。
还可以使用 Reagentc.exe /info 命令接收 WinRE 状态,以确认它是否已启用。 例如,运行命令时会收到以下结果:
C:\WINDOWS\system32>Reagentc.exe /info
Windows Recovery Environment (Windows RE) and system reset configuration
Information:
Windows RE status: Enabled
Windows RE location: \\?\GLOBALROOT\device\harddisk0\partition1\Recovery\WindowsRE
Boot Configuration Data (BCD) identifier: ########-####-####-####-############
Recovery image location:
Recovery image index: 0
Custom image location:
Custom image index: 0
REAGENTC.EXE: Operation Successful.
数据收集
如果需要 Microsoft 支持方面的帮助,建议按照使用 TSS 针对与部署相关的问题收集信息中所述的步骤收集信息。