Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows 10 / How to Install .NET Framework 3.5 on Windows 11/10 and Windows Server

March 12, 2024 Windows 10Windows 11Windows Server 2019Windows Server 2022

How to Install .NET Framework 3.5 on Windows 11/10 and Windows Server

Most modern Windows apps require the .NET Framework to be installed. For example, NET Framework 4.8 is installed by default on Windows 11/10 and Windows Server 2022/2019. However, some old and legacy applications require the .NET Framework 3.5, 2.0, or even 1.0 to be installed.

In this article, we’ll walk you through how to install .NET 3.5 on Windows 11/10 and Windows Server 2022/2019/2016.

Contents:
  • Installing .NET Framework 3.5 on Windows 11 and 10
  • How to Install .NET Framework 3.5 on Windows Server 2022/2019/2016
  • Configure .Net Framework Offline Installation Options with GPO

Installing .NET Framework 3.5 on Windows 11 and 10

Check that .NET Framework 3.5 (includes .NET 2.0 and 3.0) is not installed on your computer. Open a PowerShell console as an administrator and run the command:

Get-WindowsCapability -Online -Name NetFx3

Get-WindowsCapability NetFx3

In our case, .NET 3.5 is not installed (State=NotPresent).

On Windows 10/11, you can install the .Net Framework from the Turn Windows Features on or off panel:

  1. Run the command optionalfeatures.exe;
  2. Select .NET Framework 3.5 (includes .NET 2.0 and 3.0) in the list of components, click OK;install .net 3.5 framework on windows 11 and 10 via control panel
  3. If your computer has direct Internet access, select “Let Windows Update download the files for you”;install net framework 3.5 online
  4. Windows will download and install the latest version of the .NET Framework 3.5 component from the Microsoft Update servers.download .net framework source from windows update
You can also install .NET Framework 3.5 from the command line:

  • Using DISM: DISM /online /Enable-Feature /FeatureName:"NetFx3"
  • Or with PowerShell: Enable-WindowsOptionalFeature -Online -FeatureName "NetFx3"

If your computer is not connected to the Internet or disconnected from the network, then an error will appear when installing .NET 3.5:

Windows couldn’t complete the requested changes.
The changes couldn’t be completed. Please reboot your computer and try again
Error code: 0x8024402C

error 0x8024402C when installing net 3.5 framework on windows 10

In this case, you can manually install the NET 3.5 feature from your Windows installation media. To do this, you will need an installation USB flash drive or an ISO image file with your Windows version (how to check the version of Windows in an ISO image):

  1. Connect your media with the Windows installation image to your computer. In my case, I have the file Windows 11 ISO image file. Click on the file and choose Mount to connect the image to a virtual DVD drive (or use the PowerShell command: Mount-DiskImage -ImagePath "C:\ISO\Windows11-22h2.iso" );
  2. In my case, the virtual drive with the image was assigned the drive letter E: (we will use this drive letter in the following commands);
  3. To install .Net 3.5 from the component source files on the installation disk, use the command:
    DISM /online /enable-feature /featurename:NetFX3 /All /Source:E:\sources\sxs /LimitAccess
    Or (a similar PowerShell command):
    Add-WindowsCapability -Online -Name NetFx3~~~~ -Source E:\Sources\SxS
    install net 3.5 framework with powershell offline

To make sure that the .NET Framework is successfully installed, run the command:

Get-WindowsCapability -Online -Name NetFx3~~~~

Name         : NetFX3~~~~
State        : Installed
DisplayName  : .NET Framework 3.5 (includes .NET 2.0 and 3.0)
Description  : .NET Framework 3.5 (includes .NET 2.0 and 3.0)
DownloadSize : 72822163
InstallSize  : 496836410

check if NET 3.5 framework is installed on Windows 11

List the versions of the .NET Framework that are installed on your computer:

Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name version -EA 0 | Where { $_.PSChildName -Match ‘^(?!S)\p{L}’} | Select PSChildName, version

list installed net framework versions

How to Install .NET Framework 3.5 on Windows Server 2022/2019/2016

On Windows Server 2022, 2019, 2016, and 2012 R2, you can install NET Framework 3.5 in several ways:

  • Via Server Manager: Add roles and features -> Features -> .NET Framework 3.5 Features -> .NET Framework 3.5 (includes .NET 2.0 and 3.0 );
  • Using DISM: DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
  • With PowerShell: Install-WindowsFeature NET-Framework-Core

In this case, all the necessary .NET 3.5 installation files for your Windows Server version will be downloaded from the Windows Update servers. For this installation method to work, you need to check the following:

  1. Your Windows Server must have direct Internet access. Proxy and firewall settings should not restrict access to Windows Update servers;
  2. Your host must not be configured to receive updates from the local WSUS server. Check your current Windows Update settings using the Group Policy result report (rsop.msc) or directly in the registry;
    Check the value of the UseWUServer parameter in the registry:
    Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" | select -ExpandProperty UseWUServer
    If the parameter value is 1, then your host is configured to receive Windows updates from the local WSUS server. In this case, you will receive error 0x800F0954 when installing .NET 3.5. Change the registry parameter to 0 or remove it to connect directly to the Microsoft Windows Update servers.

If you can access the Internet from your Windows Server host, but it is configured to receive updates from WSUS, you will see error 0x800f081f when installing NET Framework.

Solution: Install .Net 3.5 online from Microsoft servers and ignore local WSUS:

  1. Export the current Windows Update settings from the HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate registry key to a REG file:
    reg export HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate c:\WindowsUpdateRegFile.reg
  2. Delete this key ( Remove-Item -Path HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate -Recurse ) and restart the service: net stop wuauserv & net start wuauserv
  3. Run the .Net 3.5 installation from the web: DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
  4. After the installation is complete, return the previous WU settings: import the reg file ( Reg import c:\WindowsUpdateRegFile.reg ) and restart the Windows Update service again

If there is no direct Internet access from the server, then when you try to install .NET 3.5 on Windows Server through the Server Manager, you will receive the error 0x800F081F (The source files could not be found), 0x800F0950, 0x8024402c, 0x800F0906, or 0x800F0907 (depending on the version of Windows Server).

Net Framework 3.5 installation error 0x800f081f (The source files could not be found).

Although .NET Framework 3.5 is listed as a feature of Windows Server 2022/2019/2016/2012R2, its binary files are missing from the Windows component store (Features on Demand concept). This is done to reduce the size of the operating system image on the disk. You can check if the .NET Framework 3.5 source files are available in the local component store of Windows Server with the command:

Get-WindowsFeature *Framework*

NET-Framework-Core 3.5 removed feature on Windows Server

As you can see the status of the NET-Framework-Core feature is Removed.

To install the NET-Framework-Core, you will need a distribution with your version of Windows Server in the form of an ISO file, or in the extracted form in a network folder. Mount the ISO file with the Windows Server install image as a virtual drive (for example, drive D:). Now, you can install the Windows features from the GUI or using PowerShell.

You can install the .Net 3.5 feature from the Server Manager graphical console:

  1. Select the .Net Framework 3.5 feature as earlier, but before clicking Install, click a small link Specify an alternate source path at the bottom of the form;Specify an alternate source path.
  2. Specify the path to the Component Store (SXS) folder in your Windows Server distro. If you mounted the ISO image as a virtual disk, the path may look like D:\sources\sxs. It can also be a network share, where you copied the distribution files (for example, \\fs1\iso\ws2016\sources\sxs). Then click OK.windows server2016 source sxs folder

It is much easier to install .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 Windows Server source files.

The LimitAccess parameter prevents DISM from connecting to Windows Update servers to receive feature binary files. Only source files in the specified folder are used.  

Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess

If you want to install the Windows Server feature using PowerShell, use the Add-WindowsFeature command:

Add-WindowsFeature NET-Framework-Core -Source d:\sources\sxs

After the component installation is completed, a server restart is not required.

You can also manually copy 2 CAB files microsoft-windows-netfx3... from the \sources\sxs folder of your Windows Server install image. In this case, to install .NET 3.5, just run the command:

dism /online /Add-Package /PackagePath:C:\distrib\net35\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab.

Configure .Net Framework Offline Installation Options with GPO

You can configure specific settings for installing Windows components from a local source or Windows Update even when using WSUS with the Group Policy option Specify settings for optional component installation and component repair (located under GPO section Computer Configuration -> Administrative Templates -> System).

On a standalone computer, you can enable this policy setting using the Local Group Policy Editor (gpedit.msc). In an Active Directory environment, you can create a GPO for all computers/servers using the GPMC console (gpmc.msc).

Here you can specify that when installing or repairing Windows components, you should always download files from the 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 shared folder with Windows Server components that you want to use for offline installation in the “Alternate source file path” parameter:

  • Specify the path to shared network folder in the UNC format (\\fs01\distr\ws22\sxs) (here you can specify multiple UNC paths separated by semicolons: \\fs01\ws22\sxs;\\man02\ws22\sxs;\\fs03\sxs)
  • It is also possible to specify a WIM file as a source: WIM:\\fso1\distr\ws16\install.wim:2 (in this case, 2 is the index of your edition of Windows Server’s image in the WIM file. You can list available Windows Server edition in a WIM file with a command: DISM /Get-WimInfo /WimFile:"\\server\distr\ws2016\install.wim" )

Specify settings for optional component installation and component repair

Use the different SXS sources for different versions of Windows Server. If you are running multiple versions of Windows Server on your network, you will need to create separate GPOs with different UNC paths to SXS sources. You can use Group Policy WMI filters to apply a GPO only to hosts that are running specific versions of Windows Server.
23 comments
7
Facebook Twitter Google + Pinterest
previous post
Copy Files and Folders to User Computers via GPO
next post
Using Active Directory User Photo as Account Logon Image on Windows

Related Reading

Configure NTP Time Source for Active Directory Domain

May 6, 2025

How to Cancel Windows Update Pending Restart Loop

May 6, 2025

View Windows Update History with PowerShell (CMD)

April 30, 2025

Cannot Install Network Adapter Drivers on Windows Server

April 29, 2025

Change BIOS from Legacy to UEFI without Reinstalling...

April 21, 2025

23 comments

Erik Nettekoven October 22, 2014 - 3:54 pm

If you encounter problems installing .NET 3.5 (source could not be found error), install this update:
https://support.microsoft.com/kb/3005628

Reply
Nial May 3, 2016 - 11:01 am

Thank you. 
It was very useful article. 

Reply
Hari June 16, 2016 - 11:01 am

thank you , it helped me 

Reply
Govindharaj June 30, 2016 - 12:23 pm

the request to add or remove features on the specified server failed installation on one or more roles, role services or features failed. error:0x800f0907
I was troubleshoot all the given process getting same issue
 

Reply
Govindharaj June 30, 2016 - 12:25 pm

Pls give me the solution asap

Reply
Artyom September 7, 2016 - 10:03 am

Thx for very useful article!
 

Reply
Gyandev September 8, 2016 - 11:00 pm

Thanks….Really it help me

Reply
A.Shokri September 22, 2016 - 9:03 am

Thanks….it helpfull

Reply
Pavan October 18, 2016 - 10:25 pm

The issue exists even after doing that. 
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
 
C:\Windows\system32>dism /online /enable-feature /featurename:NetFX3 /all /Sourc
e:C:\Windows\WinSxS /LimitAccess
 
Deployment Image Servicing and Management tool
Version: 6.3.9600.17031
 
Image Version: 6.3.9600.17031
 
Enabling feature(s)
[===========================66.2%======                    ]
 
Error: 0x800f081f
 
The source files could not be found.
Use the “Source” option to specify the location of the files that are required t
o restore the feature. For more information on specifying a source location, see
 http://go.microsoft.com/fwlink/?LinkId=243077.
 
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
 
C:\Windows\system32>dism /online /enable-feature /featurename:NetFX3 /all /Sourc
e:C:\Windows\WinSxS /LimitAccess

Reply
Max October 19, 2016 - 9:02 am

You are use wrong Source parameter. Instead pointed on files in C:\Windows\WinSxS, you must specify path to winsx folder on USB/ ISO / mounted iso file with Windows 2012 distribution.
For example:
Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:E:\sources\SxS /LimitAccess

Reply
mondbala December 31, 2016 - 4:51 pm

thank you so much. it solved my problem

Reply
Kory April 21, 2017 - 4:37 pm

Thank you for this. Solved my problem. Cheers!

Reply
Sathish December 1, 2017 - 12:44 pm

Hi,

I would like to know, can we use any powershell or DISM commands to enable ‘Specify settings for optional component installation and component repair’ under Group policy editor in order to install NetFx3 from online.

Kindly assist me, I am looking for automate this process.

Reply
Mohammad Reza Gerami January 2, 2018 - 11:25 am

if you have a problem with install .NET 3.5:
follow these comands with powershell:

Get-WindowsFeature *Framework*
Install-WindowsFeature Net-Framework-Core -source d:\sources\sxs

Reply
Josh July 19, 2018 - 5:10 pm

In one of your screenshots above you note D:/Source but it should be D:/Sources

Reply
5g6t March 6, 2019 - 8:27 pm

I upgraded 5 servers to 2012r2 from 2008r2….production….
Could not get 3.5 to install.
Found a reference server that had same windows version but was in a different domain, and had 3.5 installed.
The windows update/group policy changes did not work for me.
so ran:
net use z: \\%IP%\c$ /user:%domain%\%username%

dism /online /enable-feature /featurename:netfx3 /all /LimitAccess /source:z:\windows\winsxs

Reply
Chris July 3, 2019 - 3:00 pm

Hello, I wrote a Powershell script for the above registry method Which seems to work best for me. see below:

https://github.com/ctejeda/PowerShell-Modules/blob/master/Force-Install.NET-Framework

Reply
TimeFreedom January 6, 2020 - 10:51 pm

Followed the steps and restarted Server 2016 in advanced troubleshoot mode (command prompt) and the following command worked for me:
dism /image:d:\ /enable-feature /featurename:netfx3 /source:e:\sources\sxs

d:\ = system drive – may be different on your system, verify first by changing to the drive letter and running dir
e:\sources\sxs = folder on Server 2016 installation ISO

Reply
Franky February 7, 2020 - 6:37 pm

Damn dude I wanna hug you for this, worked as a charm thanks

Reply
Fish June 4, 2020 - 9:39 pm

Very helpful. The DSIM CMD helped me on a box with no internet access. I pointed it to another 2012 R2 box that already had it and it worked like a charm.

Reply
Raj Harkare July 22, 2021 - 7:27 am

Thank you for your Valuable information which helped to resolve my issue too.

Reply
"소스 파일을 찾을 수 없습니다"라는 Windows 기능 설치 실패 요소 저장소가 손상되지 않았는지 확인하기 위해 CheckSUR을 - How IT August 10, 2021 - 8:10 pm

[…] 환경에서도 작업하고 있습니다. 여기에 설명 된 절차를 따랐습니다 […]

Reply
Sule Oebao July 18, 2023 - 1:23 am

Thank you so much. Useful article.

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMware
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025
  • How to Write Logs to the Windows Event Viewer from PowerShell/CMD

    March 3, 2025
  • How to Hide (Block) a Specific Windows Update

    February 25, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Allow Multiple RDP Sessions on Windows 10 and 11
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • How to Run Program without Admin Privileges and Bypass UAC Prompt
  • Fix: BSOD Error 0x0000007B (INACCESSABLE_BOOT_DEVICE) on Windows
  • Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top