Install Net Framework 3.5 SP1 Offline on Server 2012 R2

8

2

I need to to install Net Framework 3.5 SP1 on Server 2012 and I know of the method which requires the installation media. Installing .NET framework 3.5 on windows server 2012

However, I do not have the installation media and no Internet. Is there any other way of installing it?

drum

Posted 2014-12-10T17:21:29.690

Reputation: 567

Extract it using the DISM tool to a folder location with a computer that does have access a installation media and/or access to the internet. Once it is placed into the component store it can be extracted. – Ramhound – 2014-12-10T17:41:48.597

Possible duplicate of Installing .NET framework 3.5 on windows server 2012

– eis – 2016-03-09T15:00:52.123

Answers

2

The only way I managed to install the framework is by connecting the machine to the internet and doing a Windows Update.

drum

Posted 2014-12-10T17:21:29.690

Reputation: 567

6

This answer combines information from multiple answers and also adds some extra steps not previously mentioned.

I managed to do it in the following way:

  1. Download the ISO image for Windows Server 2012 R2 (Note! has to be R2) from https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2012-r2 . It needs a windows live id registration and you need to agree to follow-up emails.
  2. Once you've downloaded it to some location, transfer to the machine/VM you wish to install it to.
  3. Copy it to another location within the target machine. This is to prevent "sorry, there was a problem mounting the file" error as described here, which relates to some transfer managers writing the file as sparse files. If you actually copied it already during the transfer in the previous step and not just mapped it, this step might not be needed: for me it was.
  4. Right click the file in explorer and select "Mount". It should be mounted, I'm assuming to D: drive. If you get an error, revert to previous link.
  5. Open cmd prompt as administrator and run the following commands (switches are explained in this other answer in a similar thread):

.

dism.exe /online /enable-feature /featurename:NetFX3ServerFeatures /all /Source:d:\sources\sxs /LimitAccess
dism.exe /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess

Both seem to be needed and in the order I've given. (source)

If you get an error "source files not found", reconfirm you have R2 image in use. That was the problem for me - the actual .NET 3.5 was missing from my image, which was plain 2012.

If both commands are successful, congratulations! You now have it installed. In case you're in doubt, you can confirm the version using steps outlined here.

eis

Posted 2014-12-10T17:21:29.690

Reputation: 1 851

2For me it seems /all is only recognized when it follows /featurename. – i did not pay the royalties – 2017-04-10T13:32:36.963

This was perfect for me. My server is virtual and I didn't have access to the original DVD. The comment above me is also correct. – Ethan Allen – 2017-10-05T05:22:58.913

ok, moved /all after /featurename as suggested here. – eis – 2019-01-24T07:01:48.087

6

You can download the Windows Server 2012 trial version to get an ISO with the required source files.

Mount the ISO with the inbox ISO mounting and run DISM to install .Net 3.5:

dism.exe /online /enable-feature /featurename:NetFX3 /Source:d:\sources\sxs /LimitAccess

If it fails, also try to run this Update before trying to activate .Net 3.5:

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

http://support2.microsoft.com/kb/3005628/en-us

This removes 2 security updates which may prevent setup of .Net 3.5

magicandre1981

Posted 2014-12-10T17:21:29.690

Reputation: 86 560

2That was a great idea, but it failed saying it couldn't find the source files. I did check and it was D:\sources\sxs too. I also added the /all flag. – drum – 2014-12-10T21:10:42.730

you have edited your question. For R2 you have to download the R2 ISO – magicandre1981 – 2014-12-11T17:03:26.110

1I did download the R2 trial version. – drum – 2014-12-11T19:57:01.103

Do you have any MUI Packs installed? – magicandre1981 – 2014-12-12T05:16:43.167

None. It's a fresh install with only the C++ redistributables. – drum – 2014-12-12T14:39:14.067

share the CBS logs (C:\Windows\logs\CBS) – magicandre1981 – 2014-12-12T16:49:58.120

@drum I've added a workaround which you can try before running the DISM command – magicandre1981 – 2014-12-21T07:09:31.200

That is something I tried already. Nothing happens when running the patch, even in Administrator mode. – drum – 2015-01-06T18:11:29.337

share the log files. Otherwise I have no idea what is wrong. – magicandre1981 – 2015-01-06T18:14:47.683

The log was too long, so I just copied what I thought might be relevant. – drum – 2015-01-06T18:39:05.153

copy the CBS and DISM folder to the desktop, zip both and upload the zip – magicandre1981 – 2015-01-06T21:01:21.880

Please check the link in my EDIT. – drum – 2015-01-07T15:57:21.787

in the DISM.log I see the error 0x800736CC which means files are corrupted: ERROR_SXS_FILE_HASH_MISMATCH – magicandre1981 – 2015-01-07T18:09:32.580

4

Here's how i did it.

Download the ISO image for Windows Server 2012 R2 from https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2012-r2 .

Put that Disc image on the computer that needs .Net Framwork 3.5

Right Click on the file and mount. This should create a D drive. Go to Server Manager, click Manage > Add roles and Features.

Click through to the Features selection and choose the .Net Framework 3.5 entry.
Keep clicking Next until you get to the final page.

Don't click Install yet- Click the small link at the bottom to "Specify Alternate Data Source." Change the path to be D:\Sources\SxS

Then install

NSZI

Posted 2014-12-10T17:21:29.690

Reputation: 41

This is very similar to other answers here. Can you expand a little on what is different with your answer? – Burgi – 2016-05-26T20:37:42.450

This worked perfectly for me. A group policy on the particular machine forbids downloads from Windows Update, so I had to point to the DVD image. – j8048188 – 2017-07-07T23:36:58.103

2

Get a windows iso image 2008 server or higher mount the image to the inbuilt image drive of windows server 2012 r2, proceed to add roles and features and select the dotnet framework 3.5 feature, click alternatives source to show the path name eg e:\sources\sxs and click install. This should work.

Or run windows update and follow this https://support.microsoft.com/en-us/kb/3005628 for solution.

NANA

Posted 2014-12-10T17:21:29.690

Reputation: 21

For me this was the easiest, basically use the "Add Roles and Features Wizard" easily reached from Server Manager, with an alternative source. Thanks! – Konstantin – 2017-02-21T08:00:18.453

2

For Windows 2012R2, the command should be

dism.exe /online /enable-feature /featurename:NetFX3ServerFeatures /Source:d:\sources\sxs /LimitAccess

superlee

Posted 2014-12-10T17:21:29.690

Reputation: 131

1This was already suggested a year ago. how is your answer any different? – Ramhound – 2015-05-26T03:11:21.340

It should be "/featurename:NetFX3ServerFeatures" rather than "/featurename:NetFX3" – superlee – 2015-05-26T03:26:06.180

I tested the command. It installed the server features just fine, but .NET framework is not installed by that. According to this, NetFX3 feature should be installed after that, but that again gives "source files not found".

– eis – 2016-03-09T12:54:30.983

0

I specified C:\Windows\WinSXS as the alternate source path. This will fail half the time on the first go round, but it seems to eventually work.

I did it this morning with no issues and it completed on the first try.

LvilleSystemsJockey

Posted 2014-12-10T17:21:29.690

Reputation: 1

0

If mounting a https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2012-r2 still fails, We determined a minor tweak to Eis's SUPERB INSTRUCTIONS March 19th/2016 was the last inch for success.

Downloading and mounting 2012 Server R2 install ISO is key, but we had to switch to the mounted drive letter\sources directory and load the NEWER R2 v9600 version of the DISM executable. Just mounting the ISO and specifying the /source location failed to complete or even initiate any progress of installation since Windows was using the version 9200 of DISM that apparently hates the /source switch but only reported as much inside the %systemroot%\Logs\DISM\dism.log. The error explicitly described /sources as and UNKNOWN switch and thus was doomed to silent failure without properly mounting the R2 source ISO.

It was necessary to hard specify the newer version of DISM.exe 9600 inside the mounted ISO by changing directories to the mounted ISO path of dism.exe.

cd /d d:\sources && .\dism.exe /online  /enable-feature    featurename:NetFX3ServerFeatures **/Source**:d:\sources\sxs /LimitAccess
cd /d d:\sources && .\dism.exe /online  /enable-feature /featurename:NetFX3 **/Source**:d:\sources\sxs /LimitAccess

The command processor output will immediately specify whether you're executing the required version of dism.exe

*Deployment Image Servicing and Management tool

**Version: 6.3.9600.17031**

Image Version: 6.2.9200.16384

Enabling feature(s)

[==========================100.0%==========================]

The operation completed successfully.

Restart Windows to complete this operation.

Do you want to restart the computer now? (Y/N) n*

This was executed on a freshly turned up 2012 Server with only the Windows Update Agent v2 installed:

Windows Update Agent 7.8.9200.16927
Windows Update Agent 7.8.9200.16924


Windows Update Agent 7.8.9200.16927
Installation date: ‎01‎31‎2017 1304PM
Installation status: Succeeded
Windows Update Agent 7.8.9200.16927
Installation date: ‎01‎31‎2017 1304PM
Installation status: Succeeded

shatterproofwindows.blogspot

Posted 2014-12-10T17:21:29.690

Reputation: 1