启用 IIS 可选功能 IIS-ASPNET 和 IIS-NetFxExtensibility 时出错

发布于 2025-01-10 22:32:21 字数 921 浏览 0 评论 0原文

我无法启用可选功能 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠檬色的秋千 2025-01-17 22:32:21

您需要确保机器已连接网络,否则无法安装成功。或者下载新的批量许可媒体。

您无法在 Windows 中安装功能服务器2012 R2

方法 1:连接到 Internet
如果服务器可以连接到 Windows 更新以安装功能,请让服务器进行连接。

方法 2:使用 Windows Server 2012 R2 安装介质
如果服务器无法连接到 Windows 更新,请下载新的批量许可媒体(2013 年 12 月 11 日发布)并使用 Install-WindowsFeature PowerShell 命令。

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

Method 1: Connect to the Internet
­If the server can connect to Windows Update for the feature installation, let the server make the connection.

Method 2: Use Windows Server 2012 R2 installation media
If the server can't connect to Windows Update, download the new Volume Licensing media (released on December 11, 2013) and use the Install-WindowsFeature PowerShell command.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文