
dism.exe /Add-Package failed with exit code -2146498529 for windows11.0-kb5043080-x64.msu
[2026-06-30 12:14:50] Add LCU checkpoint (KB5043080): directory has 1 package(s), injecting one by one -> E:\IsoPatch\packages\Win11LTSC2024EN\lcu\kb5043080
[2026-06-30 12:14:50] -> LCU checkpoint (KB5043080): windows11.0-kb5043080-x64.msu
dism.exe /Add-Package failed with exit code -2146498529 for E:\IsoPatch\packages\Win11LTSC2024EN\lcu\kb5043080\windows11.0-kb5043080-x64.msu
所在位置 C:\Users\Administrator\.workbuddy\skills\windows-server-iso-patch-integration\scripts\Invoke-BootWimOnlyIso_withpercentprogress.ps1:296 字符: 13
+ throw "dism.exe /Add-Package failed with exit code $LASTE ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (dism.exe /Add-P...5043080-x64.msu:String) [], RuntimeException
+ FullyQualifiedErrorId : dism.exe /Add-Package failed with exit code -2146498529 for E:\IsoPatch\packages\Win11LTSC2024EN\lcu\kb5043080\windows11.0-kb5043080-x64.msu
报错:-2146498529 = 0x800F081F (CBS_E_SOURCE_MISSING),在 boot.wim 注 kb5043080\windows11.0-kb5043080-x64.msu 时触发。
根因(配置 + 逻辑共同导致,非脚本崩溃):
25H2Win11iotAmd64EN_idx2.json 的 Build=26200,触发了之前加的「≥26200 → 先注 KB5043080 checkpoint」分支。Win11LTSC2024EN\lcu(24H2/26100 包),里面的 kb5043080 是 2024-09 的 24H2 checkpoint。[2026-06-30 14:48:12] Add LCU: directory has 1 package(s), injecting one by one -> E:\IsoPatch\packages\Win11LTSC2024EN\lcu
[2026-06-30 14:48:12] -> LCU: windows11.0-kb5094126-x64.msu
dism.exe /Add-Package failed with exit code -1073740791 for E:\IsoPatch\packages\Win11LTSC2024EN\lcu\windows11.0-kb5094126-x64.msu
所在位置 C:\Users\Administrator\.workbuddy\skills\windows-server-iso-patch-integration\scripts\Invoke-BootWimOnlyIso_withpercentprogress.ps1:296 字符: 13
+ throw "dism.exe /Add-Package failed with exit code $LASTE ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (dism.exe /Add-P...5094126-x64.msu:String) [], RuntimeException
+ FullyQualifiedErrorId : dism.exe /Add-Package failed with exit code -1073740791 for E:\IsoPatch\packages\Win11LTSC2024EN\lcu\windows11.0-kb5094126-x64.msu
dism.exe /Add-Package failed with exit code -1073740791 for E:\IsoPatch\packages\24H2Arm64EN\lcu\windows11.0-kb5094126-arm64.msu
所在位置 C:\Users\Administrator\.workbuddy\skills\windows-server-iso-patch-integration\scripts\Invoke-BootWimOnlyIso_withpercentprogress.ps1:318 字符: 13
+ throw "dism.exe /Add-Package failed with exit code $LASTE ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (dism.exe /Add-P...94126-arm64.msu:String) [], RuntimeException
+ FullyQualifiedErrorId : dism.exe /Add-Package failed with exit code -1073740791 for E:\IsoPatch\packages\24H2Arm64EN\lcu\windows11.0-kb5094126-arm64.msu

问题的本质是:dism 业务成功了,但因退出阶段被外部 hook 搞崩,返回了非零退出码,脚本的 if ($LASTEXITCODE -ne 0) { throw } 把它当成了失败。
如果遇到0xC0000409,校验RollupFix 是否真的 Installed,确认装上就吞掉这个崩溃码当成功。
[2026-06-30 17:30:43] Add LCU: directory has 1 package(s), injecting one by one -> E:\IsoPatch\packages\24H2Arm64EN\lcu
[2026-06-30 17:30:43] -> LCU: windows11.0-kb5094126-arm64.msu
dism.exe /Add-Package failed with exit code 3 for E:\IsoPatch\packages\24H2Arm64EN\lcu\windows11.0-kb5094126-arm64.msu
所在位置 C:\Users\Administrator\.workbuddy\skills\windows-server-iso-patch-integration\scripts\Invoke-BootWimOnlyIso_withpercentprogress.ps1:296 字符: 13
+ throw "dism.exe /Add-Package failed with exit code $LASTE ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (dism.exe /Add-P...94126-arm64.msu:String) [], RuntimeException
+ FullyQualifiedErrorId : dism.exe /Add-Package failed with exit code 3 for E:\IsoPatch\packages\24H2Arm64EN\lcu\windows11.0-kb5094126-arm64.msu退出码 3 = 0x80070003 = ERROR_PATH_NOT_FOUND
退出码 3 是 MAX_PATH 越界导致的ERROR_PATH_NOT_FOUND,不是脚本 bug、不是包损坏
WIMMountExtractFileToHandle → wimmount 驱动尝试从 .wim 按需回填 ServicingStack...mum
UncompressFileBase: file corrupted in block at offset 000002B3CCEB7040 → 解压这个文件的某个数据块时发现 WIM 内的压缩块损坏(Error 1392 = ERROR_FILE_CORRUPT)
核实下载的ISO有问题,md5值不对,重新下载校验md值没问题后,重新操作,解决
组合包= SSU 服务栈子包 + LCU 主体,dism 把它当成两个 CBS 安装阶段分别跑,每阶段各打一条独立进度条:
第 1 段:解析展开 + 装 SSU + 逐组件登记规划
第 2 段:RollupFix 内容真正写进离线 boot.wim 并提交
[2026-06-30 20:36:48] Add LCU: directory has 1 package(s), injecting one by one -> E:\IsoPatch\packages\Win11LTSC2024EN\lcu
[2026-06-30 20:36:48] -> LCU: windows11.0-kb5094126-x64.msu
部署映像服务和管理工具
版本: 10.0.28000.1
映像版本: 10.0.26100.6584
Processing 1 of 1 -
[ 1.0% ]
[= 2.0% ]
[======= 13.0% ]
[======== 14.0% ]
[======== 15.0% ]
[========= 16.0% ]
[========= 17.0% ]
[========== 18.0% ]
[=========== 19.0% ]
[=========== 20.0% ]
[============ 21.0% ]
[============ 22.0% ]
[============= 23.0% ]
[============= 24.0% ]
[============== 25.0% ]
[=============== 26.0% ]
[=============== 27.0% ]
[================ 28.0% ]
[================= 30.0% ]
[================= 31.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[================== 32.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[=================== 33.0% ]
[==================== 35.0% ]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[==========================100.0%==========================]
[ 1.0% ]
[ 1.0% ]
[ 1.0% ]
[ 1.0% ]
[===========================72.0%========= ]
[===========================72.0%========= ]
[===========================72.0%========= ]
[==========================100.0%==========================]
[==========================100.0%==========================]
操作成功完成。
[2026-06-30 20:41:40] Cleanup image: E:\b (live progress bar)
部署映像服务和管理工具
版本: 10.0.28000.1
映像版本: 10.0.26100.8655
[== 5.0% ]
[== 5.0% ]
[===========================65.0%===== ]
[===========================70.0%======== ]
[===========================70.0%======== ]
[===========================94.6%====================== ]
[==========================100.0%==========================]
操作成功完成。
报下面msg的时候,运行regedit打开注册表编辑器,选中没自动卸载完的挂载点,卸载配置单元。
正在卸载映像
[==========================100.0%==========================]
错误: 0xc1420117
不能完全卸载目录。这通常是由于应用程序仍在装载目录中打开文件。请关闭这些文件并重新卸载来完成卸载过程。
可以在 C:\WINDOWS\Logs\DISM\dism.log 上找到 DISM 日志文件

卸载配置单元后,执行这段powershell
Get-WindowsImage -Mounted
dism /Cleanup-Mountpoints
dism /Cleanup-Wim
# 定义注册表路径
$regPath = "HKLM:\SOFTWARE\Microsoft\WIMMount\Mounted Images"
# 使用Get-ChildItem递归遍历注册表项
Get-ChildItem -Path $regPath -Recurse | ForEach-Object {
# 获取当前项的所有子项
$subKeys = Get-ItemProperty -Path $_.PSPath -Name * -ErrorAction SilentlyContinue
# 检查是否存在名为"Mount Path"的子项
if ($subKeys.PSObject.Properties.Name -contains "Mount Path") {
# 输出找到的"Mount Path"值
$mountPathValue = $subKeys."Mount Path"
Write-Output "Found 'Mount Path' with value '$mountPathValue' at key '$($_.PSPath)'"
$mountPathValue
Write-Output ""
}
}
#Dism /Unmount-Image /MountDir:"E:\MountUUP" /Discard问题八、failed with exit code 4350、failed with exit code 13,原因未知,重试好了,让AI分析原因,AI说可能跟第三方minifilter有关
winre.wim
===== Starting Win10LTSC2021ENx86 @ 2026-09-17 23:55:09 =====
[2026-09-18 00:02:59] Service winre.wim
[2026-09-18 00:03:47] Add Safe OS Dynamic Update: directory has 1 package(s), injecting one by one -> E:\IsoPatch\packages\Win10LTSC2021ENx86\safeos-du
[2026-09-18 00:03:47] -> Safe OS Dynamic Update: windows10.0-kb5122887-x86.cab
===== FAILED Win10LTSC2021ENx86 : dism.exe /Add-Package failed with exit code 4350 for E:\IsoPatch\packages\Win10LTSC2021ENx86\safeos-du\windows10.0-kb5122887-x86.cab =====
boot.wim
===== Starting Win10LTSC2021CN @ 2026-09-18 00:05:47 =====
[2026-09-18 03:21:50] Service boot.wim index 1
[2026-09-18 03:23:51] Add LCU: directory has 1 package(s), injecting one by one -> E:\IsoPatch\packages\Win10LTSC2021EN\lcu
[2026-09-18 03:23:51] -> LCU: windows10.0-kb5129236-x64_4413bfb0ab8a665cd0244ed67ec361170bb12ecb.msu
===== FAILED Win10LTSC2021CN : dism.exe /Add-Package failed with exit code 13 for E:\IsoPatch\packages\Win10LTSC2021EN\lcu\windows10.0-kb5129236-x64_4413bfb0ab8a665cd0244ed67ec361170bb12ecb.msu =====

关于code 4350 ,AI的解读如下:
报错本质:4350 = 0x10FE = ERROR_FILE_OFFLINE
因果链:
dism 注 LCU 时 wimmount 把挂载镜像里服务栈文件的数据块投影回填读出来;
解压时读到坏块 → Error 1392 (ERROR_FILE_CORRUPT);
CBS 拿不到内容 → 报 0x800710fe (ERROR_FILE_OFFLINE);
塌的是 ServicingStack 这个地基 → 最终 dism 吐 4350。
关键:源 LCU 文件本身没坏(历史用 /Export-Image /CheckIntegrity 逐块重压 100% 通过验证过)。坏的是运行时投影层偶发读出坏数据——高度嫌疑是 Ztsm/DLP minifilter 干扰 wimmount,但没用 procmon 实锤到具体 filter,属嫌疑级。这是偶发的,不是每次必崩。
不是源文件坏(已用 CheckIntegrity 证否),也不是安全软件"主动拦截/打离线属性"那种意义上的拦。真相是:dism 通过 wimmount 投影读取挂载镜像文件时,运行时偶发读出坏数据块(1392),CBS 层把它表达成 OFFLINE(0x800710fe),最终塌成 4350。这个"偶发读坏"极可能是内核 minifilter(Ztsm/DLP 嫌疑)干扰投影 IO 造成的,但没 procmon 实锤,属高嫌疑未定罪。
关于code 13 ,AI的解读如下:
delta_library.cpp(350) ApplyDeltaB -> NTSTATUS_FROM_WIN32(ERROR_INVALID_DATA)
Hydration failed ... Delta Type: Reverse Delta, RetrievedChecksum 1426642098 == ComputedChecksum 1426642098
-> CbsProvider.dll / mrxsmb10.sys / srv.sys 三个互不相干组件同时 "Matching binary missing"
-> HRESULT_FROM_WIN32(ERROR_INVALID_DATA) -> DISM 0x8007000d
校验和一致却解压失败 ⇒ delta 数据没坏,是"参考基础文件"读回来的内容不对;三个无关组件同时挂 ⇒ 是通道级故障,不是单个坏文件。待验证假设(不武断,标注为假设)
fltmc instances -v E: 显示 WIMMount(高度 180700)之上有 9 个第三方 minifilter:DLPDrv(654322,最高)、TFsFlt、UCPD、SysmonDrv、iOAProcessAudit、WdFilter、ZtsmSysMonX64、QQSysMonX64、iOAMonitor、iOAAudit;C: 卷几乎相同(换卷无用)。WIM 挂载投影文件在未回填状态下被上层过滤器触碰,正好能解释 "文件 OFFLINE / 读回内容不对 + 偶发"。实锤需要:procmon 抓 \mount\ 路径、过滤 Result≠SUCCESS,看调用栈里出现哪个第三方驱动名。在此之前我不下"就是某某安全软件"的结论。
最终:在安全软件里对用于集成补丁打包ISO的工作目录加白,暂时未复现failed with exit code 4350、failed with exit code 13
问题九、集成驱动,文件不存在导致失败
===== FAILED 25H2Win11iotArm64EN : Drivers.VirtIORoot not found: L:\Win11ARM\ARM64\ =====
===== FAILED 24H2Win11iotArm64EN : Drivers.VirtIORoot not found: L:\Win11ARM\ARM64\ =====
===== FAILED Win11LTSC24H2iotArm64EN : Drivers.VirtIORoot not found: L:\Win11ARM\ARM64\ =====原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。