Click here to Skip to main content
15,880,725 members
Articles / Feature Pack
Reference

.NET 3.5 under Windows 10: If Everything Else Fails During the Feature Install

Rate me:
Please Sign up or sign in to vote.
4.60/5 (3 votes)
17 May 2017CPOL 5.6K   2  
Starting with Windows 8, .NET 3.5 comes more or less tightly coupled to the OS, as a Windows Feature.

Introduction

Starting with Windows 8, .NET 3.5 comes more or less tightly coupled to the OS, as a Windows Feature. But there's a shortcoming: Even though one doesn't need to download an installation package, the Windows Feature dialog is supposed to download it via Windows Update. This can lead to serious troubles, if your computer is joined to a domain and the sysadmins did not add the .NET Framework 3.5 to the WSUS storage.

Why this Reference

I have found myself in a situation where Windows was unable to install .NET 3.5 even on newly setup machines over the UI. It was always a major PITA to go and grab the command line I needed from the depths of the internet.

The Command Line

Luckily enough, the .NET 3.5 CAB package is present on the Windows 10 installation media. To install the CAB file, open up an elevated command prompt and use the following command:

dism /online /enable-feature /featurename:NetFx3 /All Source:<<DRIVE>>\sources\sxs /LimitAccess

Replace <<DRIVE>> with the drive letter of your Windows 10 Installation image, e.g., if your image is inserted into drive D:, use:

dism /online /enable-feature /featurename:NetFx3 /All Source:D:\sources\sxs /LimitAccess

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Switzerland Switzerland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --