Where can the Sources\SxS” folder be obtained from?

66.2k Views Asked by At

I am getting an error when I run this command in 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.

Every article and blog I've read says that that path needs to be specified. How can a reference to this folder be obtained?

3

There are 3 best solutions below

4
On BEST ANSWER

Figured it out

  1. Download the .ISO for Windows Server 2016 (could be the 180 day evaluation version). https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2016

iso

  1. Mount the .ISO as a drive. mount

this is mounted by default to D:

  1. Copy the /sources/sxs folder to wherever it needs to go. by default, the SxS file will be at D:\Sources\SxS

  2. run the command :D

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

3
On

The source parameter defines the folder where your windows installation media / feature files are stored. The parameter itself is optional and the command should work without specifying the source.

Here's the documentation for the cmdlet.

1
On

@cataster the sxs folder is in windows server installation files