gpt4 book ai didi

powershell - Sources\SxS”文件夹从哪里获取?

转载 作者:行者123 更新时间:2023-12-02 23:07:51 24 4
gpt4 key购买 nike

当我在 PowerShell 中运行此命令时出现错误:

Install-WindowsFeature -Name Web-Net-Ext -source D:\Sources\SxS

Install-WindowsFeature : The request to add or remove features on the specified server failed. Installation of one or more roles, role services, or features failed. The source files could not be found.

我读过的每篇文章和博客都说需要指定该路径。如何获得对该文件夹的引用?

最佳答案

想通了

  1. 下载适用于 Windows Server 2016 的 .ISO(可以是 180 天评估版)。 https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2016

iso

  1. 将 .ISO 安装为驱动器。 mount

默认挂载到 D:

  1. 将/sources/sxs 文件夹复制到需要的位置。默认情况下,SxS 文件位于 D:\Sources\SxS

  2. 运行命令 :D

    Install-WindowsFeature -Name Web-Net-Ext -source D:\Sources\SxS

关于powershell - Sources\SxS”文件夹从哪里获取?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55480904/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com