我正在使用来自 Windows Server 2016 的图像,该图像已删除所有额外的 Windows 功能。我正在尝试添加使其成为域控制器“ad-domain-services”所需的功能,但它总是出错,给我一个错误,说“无法下载源文件”。我安装了 Windows Server 2016 ISO 并尝试了以下命令。你怎么知道你需要从哪里导入特征?
Install-WindowsFeature ad-domain-services -Source 'D:\sources\sxs'
Install-WindowsFeature ad-domain-services -Source 'wim:D:\sources\install.wim:2'