根据this link我将按照离线模式安装IIS Windows功能。
我已经安装了我的install.wim
等等,就像上面的链接一样。
但是当我运行这个命令时:
Dism /Image:C:\test\offline /Enable-Feature /FeatureName:WCF-NonHTTP-Activation /All
我收到了这个错误:
Deployment Image Servicing and Management tool
Version: 10.0.16299.15
Image Version: 10.0.16299.125
Enabling feature(s)
[==========================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
此错误显示The source files could not be found.
,但是当我运行此错误时,我得到了结果:
Dism /Image:C:\test\offline /Get-Features
根据一些想法我执行了这个命令:
Dism /Image:C:\test\offline /Cleanup-Image /StartComponentCleanup
Dism /Image:C:\test\offline /Cleanup-Image /RestoreHealth
但没有奏效,我遇到了上述错误。有人知道发生了什么,我怎么能传递这个错误?
答案 0 :(得分:0)
操作系统无法获取给定路径中所需的文件。
像这样在线尝试。
dism /online /enable-feature /featurename:IIS-WebServerRole
/featurename:IIS-WebServerManagementTools /featurename:IIS-ManagementConsole