How to install .NET Framework 3.5 on Windows Server and Windows 10?
A large number of apps on Windows Server and Windows 10 require the .NET Framework 3.5 (even though the .NET Framework 4.6 is installed by default). For example, I couldn't install and run SQL Server Management Studio without .NET 3.5. Let's consider how to install .Net Framework 3.5 on Windows Server 2016/2019 and Windows 10.Install the .NET Framework 3.5 on Windows Server
If your Windows server has direct access to the Internet , you can install the .NET Framework 3.5 in several ways:
If your Windows server has direct access to the Internet , you can install the .NET Framework 3.5 in several ways:
- Through Server Manager;
- Using the DISM command:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
- Using PowerShell:
Install-WindowsFeature NET-Framework-Core
In this case, all the .NET 3.5 distribution files required for your version of Windows Server are downloaded from the Windows Update servers. For this installation method to work, you must ensure that:
Although .NET Framework 3.5 is included in the feature list of Windows Server 2016/2019, its binaries are missing from the Windows Component Store (Features on Demand concept). This is done to reduce the size of Windows on the disk. You can install the component using the GUI or PowerShell. You can verify the presence of the .NET Framework 3.5 in the local component store on Windows Server with the command:
As you can see, the status of the NET-Framework-Core function is Remote .
To install the NET-Framework-Core , you will need the Windows Server 2016/2019 distribution in the form of an ISO file, a DVD drive, or in uncompressed form on a shared network folder. Mount the ISO file with the Windows Server installation image as a virtual drive (for example, drive D:). Now, you can install Windows features from the GUI or by using PowerShell.
Using Server Manager to install the .NET Framework 3.5 on
You can install the .NET 3.5 feature by using the graphical console of Server Manager. To do so, select the .Net Framework 3.5 feature as before, but before clicking Install on PC , click a small link at the bottom of the form – Specify an alternate source path.
In this window, you need to specify the path to the component store (SxS folder) of your Windows Server 2016 installation image. If you mounted the ISO image as a virtual disk, the path may look like D:\sources\sxs. It can also be the network share, where you copied the distribution files (for example, \\fs1\isows2016\sources\sxs). Then click OK.
Just run the installation.
How to install .NET Framework 3.5 using DISM or PowerShell?
It's much easier to install the .NET Framework 3.5 feature from the elevated command prompt or PowerShell console. Just run the command:
The LimitAccess parameter prevents DISM from connecting to Windows Update servers to receive component binaries. Only the source files in the specified folder are used.
You can also install it using the PowerShell Add-WindowsFeature Cmdlet:
You can also manually copy 2 cab files microsoft-windows-netfx3...from the sourcessxsWindows Server installation image folder. In this case, to install .NET 3.5, simply run the command:
Using the Specify settings for installation and repair of optional components Group Policy setting (located in the Computer Configuration -> Administrative Templates -> System GPO section ), you can configure specific settings to install Windows components from a local source or Windows Update even when using WSUS.
Here you can specify that when installing or repairing Windows components, you should always download files from Windows Update servers (Internet) instead of the local WSUS server (the " Download repair content and optional features directly from Windows Update instead of Windows Server Update Services » option). You can also specify the path to the directory with the Windows Server components (or wim file) that you want to use during the installation of the features (specified in the “ Alternate source file path ” parameter).
How to enable .NET Framework 3.5 on Windows 10?
In Windows 10, you can install the .NET Framework 3.5 from the Windows Features window in Control Panel.
Run the command optionalfeatures.exe;
In the list of components, select .NET Framework 3.5 (includes .NET 2.0 and 3.0) , click OK;
If your computer has direct access to the Internet, then in the next window select “Let Windows Update download the files for you” and the latest version of the .NET Framework 3.5 will be downloaded and installed from Microsoft servers.
The same DISM and PowerShell commands to download and install the .NET Framework 3.5 online:
If you have an installation disk or ISO image with Windows 10 (version and build must match), connect/mount it, for example, on drive D:\. To install .NET 3.5, use the DISM command ( DISM /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess) or PowerShell ( Add-WindowsCapability -Online -Name NetFx3~~~~ -Source D:\Sources\SxS)
To verify that the .NET Framework has been installed correctly, run the command:
You can also verify that the .NET Framework 3.5 is installed on your computer using the command:
Similarly, you can check if other versions of .NET are installed.
- Your server is not configured to receive updates from the local WSUS server (check the update settings in the GPO or directly in the servers registry);
- Proxy and firewall settings must not restrict access to Windows Update servers.
Although .NET Framework 3.5 is included in the feature list of Windows Server 2016/2019, its binaries are missing from the Windows Component Store (Features on Demand concept). This is done to reduce the size of Windows on the disk. You can install the component using the GUI or PowerShell. You can verify the presence of the .NET Framework 3.5 in the local component store on Windows Server with the command:
Get-WindowsFeature *Framework*
As you can see, the status of the NET-Framework-Core function is Remote .
To install the NET-Framework-Core , you will need the Windows Server 2016/2019 distribution in the form of an ISO file, a DVD drive, or in uncompressed form on a shared network folder. Mount the ISO file with the Windows Server installation image as a virtual drive (for example, drive D:). Now, you can install Windows features from the GUI or by using PowerShell.
Using Server Manager to install the .NET Framework 3.5 on
You can install the .NET 3.5 feature by using the graphical console of Server Manager. To do so, select the .Net Framework 3.5 feature as before, but before clicking Install on PC , click a small link at the bottom of the form – Specify an alternate source path.
In this window, you need to specify the path to the component store (SxS folder) of your Windows Server 2016 installation image. If you mounted the ISO image as a virtual disk, the path may look like D:\sources\sxs. It can also be the network share, where you copied the distribution files (for example, \\fs1\isows2016\sources\sxs). Then click OK.
Just run the installation.
How to install .NET Framework 3.5 using DISM or PowerShell?
It's much easier to install the .NET Framework 3.5 feature from the elevated command prompt or PowerShell console. Just run the command:
Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess
Where D:\ is the drive with source files for Windows Server 2016.The LimitAccess parameter prevents DISM from connecting to Windows Update servers to receive component binaries. Only the source files in the specified folder are used.
You can also install it using the PowerShell Add-WindowsFeature Cmdlet:
Add-WindowsFeature NET-Framework-Core -Source D:\sources\sxs
After the component installation is complete, you do not need to restart the server.You can also manually copy 2 cab files microsoft-windows-netfx3...from the sourcessxsWindows Server installation image folder. In this case, to install .NET 3.5, simply run the command:
dism /online /Add-Package /PackagePath:C:distribnet35microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab.
Manage the installation of optional components with GPOsUsing the Specify settings for installation and repair of optional components Group Policy setting (located in the Computer Configuration -> Administrative Templates -> System GPO section ), you can configure specific settings to install Windows components from a local source or Windows Update even when using WSUS.
Here you can specify that when installing or repairing Windows components, you should always download files from Windows Update servers (Internet) instead of the local WSUS server (the " Download repair content and optional features directly from Windows Update instead of Windows Server Update Services » option). You can also specify the path to the directory with the Windows Server components (or wim file) that you want to use during the installation of the features (specified in the “ Alternate source file path ” parameter).
How to enable .NET Framework 3.5 on Windows 10?
In Windows 10, you can install the .NET Framework 3.5 from the Windows Features window in Control Panel.
Run the command optionalfeatures.exe;
In the list of components, select .NET Framework 3.5 (includes .NET 2.0 and 3.0) , click OK;
If your computer has direct access to the Internet, then in the next window select “Let Windows Update download the files for you” and the latest version of the .NET Framework 3.5 will be downloaded and installed from Microsoft servers.
The same DISM and PowerShell commands to download and install the .NET Framework 3.5 online:
DISM /online /Enable-Feature /FeatureName:"NetFx3"
Y
Enable-WindowsOptionalFeature -Online -FeatureName "NetFx3"
If you don't have internet access, you can install .NET 3.5 on Windows 10 using:If you have an installation disk or ISO image with Windows 10 (version and build must match), connect/mount it, for example, on drive D:\. To install .NET 3.5, use the DISM command ( DISM /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess) or PowerShell ( Add-WindowsCapability -Online -Name NetFx3~~~~ -Source D:\Sources\SxS)
To verify that the .NET Framework has been installed correctly, run the command:
Get-WindowsCapability -Online -Name NetFx3~~~~
Name : NetFX3~~~~
State : Installed
DisplayName : .NET Framework 3.5 (includes .NET 2.0 and 3.0)
DownloadSize : 72702771
InstallSize : 247885750
You can also verify that the .NET Framework 3.5 is installed on your computer using the command:
(Get-ItemProperty -Path "HKLM:SOFTWAREMicrosoftNET Framework SetupNDPv3.5").Version
Similarly, you can check if other versions of .NET are installed.
Post a Comment