简体   繁体   English

在Windows 10上通过DISM安装IIS Windows功能

[英]Install IIS Windows features by DISM on windows 10

According this link I am gonna install IIS Windows features inorder to offline mode. 根据此链接,我将安装IIS Windows功能以进入脱机模式。

I have mounted my install.wim and so on like above link. 我已经像上面的链接一样安装了install.wim等。 But when i run this command : 但是当我运行此命令时:

 Dism /Image:C:\test\offline /Enable-Feature /FeatureName:WCF-NonHTTP-Activation /All

I got this error: 我收到此错误:

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

this error shows The source files could not be found. 此错误显示The source files could not be found. but when i run this error i got result: 但是当我运行此错误时,我得到了结果:

 Dism /Image:C:\test\offline /Get-Features

According some idea i have executed this commands: 根据一些想法,我执行了以下命令:

Dism /Image:C:\test\offline /Cleanup-Image /StartComponentCleanup
Dism /Image:C:\test\offline /Cleanup-Image /RestoreHealth

but did not work and I got above error. 但没有用,我得到了以上错误。 Someone know what is happen and how can i pass this error? 有人知道会发生什么,如何传递此错误?

The OS is unable to get the files required in the given path. 操作系统无法获取给定路径中所需的文件。

Try it online like this. 像这样在线尝试。

dism /online /enable-feature /featurename:IIS-WebServerRole
/featurename:IIS-WebServerManagementTools /featurename:IIS-ManagementConsole

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM