Skip to content

Instantly share code, notes, and snippets.

@computerality
Created November 30, 2016 22:57
Show Gist options
  • Save computerality/48666348cbf8980a3204f1e3ae84c55e to your computer and use it in GitHub Desktop.
Save computerality/48666348cbf8980a3204f1e3ae84c55e to your computer and use it in GitHub Desktop.
How to Install .NET Framework 2.0 on Windows Server 2016 offline
Prerequisites:
You have a piece of old software you need to run but it requires .net 2.0 to install.
Steps to install .net framework 2.0:
1. Download .net framework from microsoft.com.
2. Realize it is x64 and not x86 as needed.
3. Download .net framework 2.0 sp2 from microsoft.com
4. Realize it is only the service pack and does not include the installer.
5. Find a USB cd rom drive.
6. Copy the exe off of the cd.
7. Get windows installer error about not being able to install .net framework 3.5(which includes 2.0 and 3.0).
8. Get Windows Server 2016 installation iso and extract \sources\sxs
9. Run the following command from googling: dism /online /enable-feature /featurename:NetFx3 /Source:D:\sources\sxs
10. Get error about missing a dependency.
11. Run the following command: dism /online /enable-feature /featurename:NetFx3ServerFeatures /Source:D:\sources\sxs
12. Run this command again: dism /online /enable-feature /featurename:NetFx3 /Source:D:\sources\sxs
13. Install the software.
@xenoid
Copy link

xenoid commented Apr 6, 2018

I made a simple PowerShell-Script that uses your guide
https://gist.github.com/xenoid/c12333da0ac62b05b0f4d81500672f7d

@doesdev
Copy link

doesdev commented Nov 6, 2018

I was impressed by the initial guide, but I'll be danged if that script didn't perfect this method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment