Enabling .NET Framework 3.5.1 in Windows 10 OSD using Configuration Manager

As in earlier Windows Versions the Feature Installation of .NET Framework 3.5.1 in Windows 10 is still needed if you have (legacy) Applications which are depending on it. By default, this feature is not enabled:

configmgr_netfx3_win10features1

If you’re using Microsoft Deployment Toolkit (MDT), enabling NET Framework 3.5 during a Task-Sequence is pretty simple due to a dedicated Step for Roles and Features. If you “just” have Configuration Manager without MDT, you need to do the (little) magic on your own.

1. Mount the Windows 10 ISO and navigate to the following Folder “\sources\sxs”

Starting with Windows 10 the structure of the sxs folder is different from before. With Windows 8 / 8.1 we had around 800 Folders. In Windows 10 this is reduced to one single file called “microsoft-windows-netfx3-ondemand-package.cab”

2. Grab that file and copy it to a new folder on your Package Share. Create a new file called “InstallNetFx3.ps1” in the same folder with the following content:

$currentLocation = Split-Path -Parent $MyInvocation.MyCommand.Path;
Enable-WindowsOptionalFeature -Online -FeatureName NetFx3 -Source $currentLocation -LimitAccess -All

configmgr_netfx3_contentshare

3. Create a new package in the Configuration Manager Console:
configmgr_netfx3_createpackage1

4. Enter a package name and set the source folder to the Package Share Folder which you just created with the two files:
configmgr_netfx3_createpackage2

5. Do not create a program:
configmgr_netfx3_createpackage3

6. Review your settings:
configmgr_netfx3_createpackage4

7. Close the Create Package and Program Wizard:
configmgr_netfx3_createpackage5

8. Distribute the content of the created package to your Distribution Point(s) or Distribution Point Group(s):

configmgr_netfx3_distributepackage

9. Open your Windows 10 Task-Sequence and create a new Step “Run PowerShell Script”

configmgr_netfx3_ts1

10. Select your created package and enter the Script name as below. Don’t forget to set the PowerShell execution policy field to Bypass, otherwise the execution of the Script will fail:
configmgr_netfx3_ts2

11. Run the Task-Sequence. After completion .NET Framework 3.5 should be enabled as below:

configmgr_netfx3_win10features2

4.4/5 - (20 votes)

20 Comments

  1. MK 19. October 2015
  2. Dan 3. December 2015
  3. Chris 7. January 2016
  4. Jose 25. May 2016
  5. Dan 10. June 2016
    • Fred 11. August 2016
      • B22 25. October 2016
  6. amislavm 29. September 2016
  7. supriyaseth 2. November 2016
  8. Mark 15. November 2016
  9. Walti 3. February 2017
    • mm Simon Dettling 11. February 2017
  10. Rishi 17. February 2017
    • mm Simon Dettling 17. February 2017
      • Ken 14. March 2017
        • mm Simon Dettling 15. March 2017
  11. Andrew 1. March 2017
  12. Joe 19. December 2019
  13. Joe 19. December 2019
  14. Gerardo 30. December 2020

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.