启用 IIS 可选功能 IIS-ASPNET 和 IIS-NetFxExtensibility 时出错
我无法启用可选功能 IIS-ASPNET 和 IIS-NetFxExtensibility。当我在 powershell 上运行以下命令来启用功能时,
Enable-WindowsOptionalFeature -Online -FeatureName "IIS-NetFxExtensibility" -All
Enable-WindowsOptionalFeature -Online -FeatureName "IIS-ASPNET" -All
出现以下错误
Enable-WindowsOptionalFeature : The source files could not be downloaded.
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.
At line:1 char:1
+ Enable-WindowsOptionalFeature -Online -FeatureName "IIS-ASPNET" -All
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand
I am unable to enable the optional feature IIS-ASPNET and IIS-NetFxExtensibility. When I am running following commands on powershell to enable features
Enable-WindowsOptionalFeature -Online -FeatureName "IIS-NetFxExtensibility" -All
Enable-WindowsOptionalFeature -Online -FeatureName "IIS-ASPNET" -All
I am getting below errors
Enable-WindowsOptionalFeature : The source files could not be downloaded.
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.
At line:1 char:1
+ Enable-WindowsOptionalFeature -Online -FeatureName "IIS-ASPNET" -All
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要确保机器已连接网络,否则无法安装成功。或者下载新的批量许可媒体。
您无法在 Windows 中安装功能服务器2012 R2
You need to make sure the machine connect to network, otherwise it cannot install successfully. Or download the new Volume Licensing media.
You can't install features in Windows Server 2012 R2