Microsoft .Net 3.5 Installation on MS Windows 2012

Background

As part of MS SQL Server 2014 install, I found out I need .Net 3.5 SP1.

Unfortunately it is not installed on the box.

Install

Manual Install

Media

Downloaded the full installer from here.

Install

Ran the downloaded installer, but received the error message.

Image

thefollowingfeaturescouldnotbeinstalled

Textual

The following feature couldn’t be installed:

.Net Framework 3.5 ( includes .Net 2.0 and 3.0)

Windows Server role and features cannot be automatically installed or uninstalled via the Windows Features Control Panel.

To install Windows Server roles and features, start Server Manager, or use the Server Manager cmdlets for Windows PowerShell.

DISM

Enable Feature

When Windows Update Is Not Accessible – Install From C:\Windows\WinSxS

Guide

Here we install from the cached installer C:\Windows\WinSXS

Script

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All

Output
Output – GUI

error-0x800f0906

Output – Text

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

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

Error: 0x800f0906

The source files could not be downloaded.
Use the "source" option to specify the location of the files that are required
on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=

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

Explanation
  1. We get an Error.  The Error Number is  0x800f0906
  2. And, we are asked to specify a different source

When Windows Update Is Not Accessible – Install From ISO Image

Guide

Here we install from the MS Windows 2012 Server ISO Image.

Here are the steps:

  1. Mount MS Windows ISO Image
  2. Prepare a script like the one below.  Editing it in the following ways
    • Drive Letter
      • Replace the drive letter with the Drive Letter you mounted above
Script

REM Windows ISO Mounted as Drive F:
set _DriveLetter=F

set _Source=%_DriveLetter%:\sources\sxs
 
REM Syntax
REM DISM /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:[folder_sxs]
 
REM Sample
Dism.exe /online /enable-feature /featurename:NetFX3 /All /LimitAccess /Source:%_Source% 

Output
Output – GUI

installfromisoimage

Output – Textual

>REM Windows ISO Mounted as Drive D:

>set _DriveLetter=D

>set _Source=D:\sources\sxs

>REM Syntax

>REM DISM /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:[folder_sxs]

>REM Sample

>Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.

References

  1. John Savill | Windows IT Pro
    • Q: Why, when I enable .NET Framework 3.5 on Windows 8 and Windows Server 2012, does it connect to the Internet and pull down files?
      Link
  2. Compatibility cookbook for Windows > Windows 8 > Client and Server Compatibility
    • .NET Framework 4.5 is default and .NET Framework 3.5 is optional
      Link
  3. Windows Deployment Tools Technical Reference Windows > Deployment Options > Microsoft .NET Framework 3.5 Deployment Considerations

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s