Share via


Can't use Install-Windowsfeature with the -Source property to install .Net 3.5

Question

Tuesday, February 3, 2015 5:44 PM

The command I'm running is:

install-windowsfeature -computername server1 -name net-framework-core -source d:\sxs

I get an error stating:

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. Error: 0x800f0906

I have taken the ISO file I have and extracted the SXS folder to the D drive.  If I mount the ISO to the machine then it installs fine.  I can't figure out why it won't work when I specify the folder name locally.  I know I've gotten this to work in the past but I know I've also had a lot of trouble getting this to work.

Anyone have any idea why this isn't working?

Thanks.

All replies (3)

Thursday, February 5, 2015 3:17 AM âś…Answered

Hi Kelemvor,

The source parameter is used when the feature files are not present in the local store of the target computer or VHD.  A network path or the path to a mounted image can be specified.

Please try to mount wim file from the source iso file and follow these steps:

#1. Get wim index number that matches "Server edition with GUI"
dism /get-wiminfo /wimfile:d:\sources\install.wim

#2. mount the wim to an empty folder
dism /mount-wim /wimfile:d:\sources\install.wim /index:<indexnumber> /mountdir:c:\mountdir /readonly

#3. Install with alternate source path
Install-WindowsFeature net-framework-core -source c:\mountdir\windows\winsxs

If there is anything else regarding this issue, please feel free to post back.

Best Regards,

Anna Wang

Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]


Wednesday, February 4, 2015 12:27 PM

Hi Kelemvor,

If you are running into this issue on server 2012 and newer, please check this package:

Update for the .NET Framework 3.5 on Windows 8, Windows 8.1, Windows Server 2012, and Windows Server 2012 R2

If there is anything else regarding this issue, please feel free to post back.

Best Regards,

Anna Wang

Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]


Wednesday, February 4, 2015 2:15 PM

The install works just fine if I mount the ISO file and install it by pointing the source to the CD Drive from the normal add/remove features without installing any other patches or anything.

It just doesn't work from the powershell command.  Do they work differently?