现象
将 Microsoft Endpoint Configuration Manager Current Branch 与最新的 ADK 一起使用,通过 Windows 10 的最新累积更新(LCU)在 .wim 文件上执行脱机服务。 若要执行维护服务,请从 \Software Library\Overview\Operating Systems\Operating System\Operating System Images 文件夹中选择 Configuration Manager 控制台中的可用操作系统映像 。
在此方案中,脱机服务失败并生成错误。
例如:
导入“Windows 10 20H2(已更新 2021 年 2 月更新)”.wim 文件。
为此 .wim 文件执行脱机服务,方法是使用“适用于基于 x64 的系统的 Windows 10 版本 20H2 的 20H2 累积更新”(KB 5000802)。
以下错误条目记录在 OfflineServicingMgr 日志中:
GetUpdateApplicability returned code 0x80004001~ Applicability State = APPLICABILITY_CHECK_NOT_SUPPORTED, Update Binary = C:\ConfigMgr_OfflineImageServicing\73676b06-20a9-48a6-89c7-7646d20ce44f\Windows10.0-KB5000802-x64.cab.
原因
仅当与列出的任一 LCU 结合使用时,才会为其中一个受影响的 Windows 版本执行脱机服务。
受影响的 Windows 版本:
- Windows 10 21H1
- Windows 10 20H2
- Windows 10 20H1
- Windows 10 2004
与以下 LCU 一起使用:
适用于 Windows 10 的 2021-06 累积更新
2021-05 Windows 10 累积更新
适用于 Windows 10 的 2021-04 累积更新
适用于 Windows 10 的 2021-03 累积更新
注意
如果使用早期版本的 LCU(例如“2021-02 Windows 10 累积更新”),则不会发生此问题。
解决方法
此问题已在当前 Windows 10 版本中解决。
建议使用以下 Windows 版本之一执行脱机服务:
- Windows 10 21H1(2021 年 6 月更新)或更高版本
- Windows 10 20H2(2021 年 5 月更新)或更高版本
- Windows 10 20H1(2021 年 5 月更新)或更高版本
- Windows 10 2004(2021 年 5 月更新)或更高版本
此问题已在内部版本 985(或更高版本)上的任何 .wim 映像中解决。 请确保使用已更新的映像(如 Windows 10 21H1(2021 年 6 月更新)或更高版本来使用适当的生成级别。 或者,使用下一部分中的解决方法将自定义 .wim 映像(一次性)更新到内部版本 985(或更高版本)。
可以使用 dism
命令查询 .wim 映像的当前内部版本号。
查询示例
以下示例演示如何查询当前内部版本号。 该数字将列为 ServicePack 内部版本:XY。 请确保根据系统要求调整路径和 /index:XY 值。
dism /Get-WimInfo /WimFile:"D:\temp\W10 20H2 (updated May-2021)\w10-20H2-install.wim" /index:3
解决方法
- 从 Microsoft更新目录下载要手动应用的 LCU。 在“症状”部分所述的示例中,LCU 为 KB 5000802。
dism
使用命令手动将 LCU 应用到 WIM 映像。
解决方法示例
以下示例演示了建议的解决方法。 请确保根据系统要求调整路径和 /index:XY
值。
mkdir D:\_Mount
"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.exe" /mount-wim /wimfile:"D:\temp\W10 20H2 (updated Feb-2021)\w10-20H2-install.wim" /mountdir:D:\_Mount /index:3
"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.exe" /image:D:\_Mount /add-package /packagepath:"D:\temp\2021-03 Cumulative Update for Windows 10 Version 20H2 for x64-based Systems (KB5000802)\AMD64-all-windows10.0-kb5000802-x64_f1da84b3bfa1c402d98dfb3815b1f81d7dceb001.msu"
"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.exe" /Image:"D:\_Mount" /Cleanup-Image /StartComponentCleanup /ResetBase
"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.exe" /unmount-wim /mountdir:D:\_Mount /commit
rmdir /Q /S D:\_Mount
其他信息
.wim 文件可能包含多个 Windows 版本,例如Windows 10 教育版或Windows 10 企业版。
可以使用参数来查询 .wim 文件 /index
以获取版本信息。
示例 1: dism /Get-WimInfo /WimFile:"D:\temp\W10 20H2 (updated Feb-2021)\w10-20H2-install.wim" /index:3
示例 2: dism /Get-WimInfo /WimFile:"D:\temp\W10 20H2 (updated Feb-2021)\w10-20H2-install.wim" /index:1