如何在仅以 Windows 更新/Microsoft 作为源的 Win 10 系统上从 Windows 10 PE 执行 DISM?

如何在仅以 Windows 更新/Microsoft 作为源的 Win 10 系统上从 Windows 10 PE 执行 DISM?

我的 Windows 10 安装已损坏(SFC 记录Windows Resource Protection found corrupt files but was unable to fix someo of them...),因此我尝试从 Windows 10 PE USB 安装运行 DISM。 (注意:Win10 PE 当前操作系统为c:,系统上的脱机系统为i:

事情是这样的:#1:

c:\Windows\system32>dism /image:i:\ /cleanup-image /restorehealth

Deployment Image Servicing and Management tool
Version: 10.0.18362.1

Image Version: 6.3.9600.18384

[==========================100.0%==========================]

Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

因此我将 Windows 10 2004 iso(通过 Rufus)写入 USB,以便我可以install.esd查看其如何工作,但它同样失败了:#2:

C:\Windows\system32>dism /image:i:\ /cleanup-image /restorehealth /source:esd:K:\sources\install.esd:1

Deployment Image Servicing and Management tool
Version: 10.0.18362.1

Image Version: 6.3.9600.18384

[==========================100.0%==========================]

Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

我如何保证DISM从 Microsoft 提取所有适当的文件来修复具有正确版本的映像(Windows 安装)等等?

更新:在 #1 上,我希望 DISM 能够通过 Windows 更新提取适当的映像文件,但也许不能,因此我尝试了 #2。在 #2 上,系统建议您必须有一个匹配的 .esd 或 .wim 文件,因此我找到了Windows 10 Version 1903之前随处可见的旧副本,并通过 Rufus 将其放到闪存驱动器上。然后我尝试再次使用该副本执行 DISM,但同样失败了,但这次还捕获了 dism.log 输出:

C:\Windows\system32>dism /image:i:\ /cleanup-image /restorehealth /source:wim:K:\sources\install.wim:1

Deployment Image Servicing and Management tool
Version: 10.0.18362.1

Image Version: 6.3.9600.18384

[==========================100.0%==========================]

Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

日志输出可以在这里找到在这个要点中

我注意到的第一个错误dism.log如下:

2020-06-19 18:17:35, Error                 CBS    Cannot add wim: file source because it is not supported during offline servicing [HRESULT = 0x800f082e - CBS_E_NOT_ALLOWED_OFFLINE]

我想我应该尝试安装install.wim通过:

K:
cd sources
K:\sources>mkdir c:\mount
K:\sources>dism /mount-wim /wimfile:install.wim /index:1 /mountdir:c:\mount

然后我尝试再次运行 dism:

dism /image:i:\ /cleanup-image /restorehealth /source:c:\mount

Deployment Image Servicing and Management tool
Version: 10.0.18362.1

Image Version: 6.3.9600.18384

[==========================100.0%==========================]

Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

请注意,错误开始出现在新 dism.log 中的第 253 行左右,但我不确定为什么,因为我现在正在使用 mount wim: dism.log 要点

相关内容