Link to home
Start Free TrialLog in
Avatar of George R. Kasica
George R. KasicaFlag for United States of America

asked on

Cannot install .net 3.5 as feature on Windows Server 2012 R2

We are failing from multiple methods to get this installed. We've used the Server Manager, PowerShell and DSIM from an elevated command prompt.

We have the 2012R2 ISO mounted as X: and an alternative path as X:\Sources\sxs

Here are the command lines we've used without success:

C:\>DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:X:\sources\sxs

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Enabling feature(s)
[===========================66.2%======                    ]

Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required t
o restore the feature. For more information on specifying a source location, see
 http://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

Powershell:
PS C:\> Install-WindowsFeature NET-Framework-Core –Source X:\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 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
At line:1 char:1
+ Install-WindowsFeature NET-Framework-Core –Source X:\Sources\sxs
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
    Exception
    + FullyQualifiedErrorId : DISMAPI_Error__Cbs_Download_Failure,Microsoft.Windows.ServerManager.Commands.AddWindowsF
   eatureCommand

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
False   No             Failed         {}
dism.zip
Avatar of Sean
Sean
Flag of United States of America image

Does the machine have unblocked internet access and do you use patch management software?
Avatar of George R. Kasica

ASKER

Just ran it as admin....no help. NDPFixit-KB3005628-X64.exe

PS C:\> Install-WindowsFeature NET-Framework-Core –Source X:\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 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
At line:1 char:1
+ Install-WindowsFeature NET-Framework-Core –Source X:\Sources\sxs
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
    Exception
    + FullyQualifiedErrorId : DISMAPI_Error__Cbs_Download_Failure,Microsoft.Windows.ServerManager.Commands.AddWindowsF
   eatureCommand

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
False   No             Failed         {}
Server has unrestricted access to Internet and can run Windows Update though we use KACE to monthly push updates.
Pete:

Went through your items also and no joy.

C:\Users\gkasica\Downloads>dism /online /enable-feature /featurename:NetFx3 /ALL /Source:C:\sxs /LimitAccess

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Enabling feature(s)
[===========================66.2%======                    ]

Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required t
o restore the feature. For more information on specifying a source location, see
 http://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

C:\Users\gkasica\Downloads>
ASKER CERTIFIED SOLUTION
Avatar of Ramin
Ramin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Run the .NETFX Setup Verifier for all .NET that it finds and see if it can repair what is there.

http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

Download the .NET tool, install it and run it.
For the DISM command, you need to point it to a valid source such as an installation disk
Shaun. Both of those location X:\sources\sxs and C:\sxs are the side by side files from the install disk, X is that actual ISO we just copied to C to speed things up.
Did you try .NET FX verifier?
Did you copy correct disk?
Ramin: Ran your suggestion and it appeared to work however the following was the output:

C:\>Dism.exe /Online /Enable-Feature /FeatureName:NetFX3 /source:C:\ /LimitAcces
s

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Enabling feature(s)
[==========================100.0%==========================]

Error: 50

The operation is complete but NetFx3 feature was not enabled.
A required parent feature may not be enabled. You can use the /enable-feature /a
ll option to automatically enable each parent feature from the following list. I
f the parent feature(s) are already enabled, refer to the log file for further d
iagnostics.
NetFx3ServerFeatures
dism.zip
John:

Yes we ran the verifier and the Fix tools. Fix said it couldn't fix it and shipped a bunch of logs to Microsoft....probably useless as it didn't allow is to add any contact info...attached below.
Verify-net-3.5.zip
netfix-logs.zip
Shaun - yes we have the 2012R2 install iso: IR5_SSS_X64FREV_EN-US_DV9
Maybe also try running SFC.    Open cmd.exe with Run as Administrator and run SFC /SCANNOW.  Allow to complete and then (at a convenient moment) restart the server and test.

If DISM did not correct, if all the other things did not correct, and if SFC does not correct, you may need to try a Repair Install on the server.
Rebuilt server in order suggested