How to enable .NET Framework 3.5 on Windows Server
Some older programs need .NET Framework 3.5, for example older game servers and tools, trading or accounting software, and the installers of SQL Server 2008 to 2014. Version 3.5 also runs programs written for .NET 2.0 and 3.0. Windows Server includes it as an optional feature, but its files are not stored on the server: Windows downloads them from Windows Update when you turn the feature on, or takes them from the installation media.
The steps below work on Windows Server 2012 R2, 2016, 2019, 2022 and 2025. Newer .NET versions (4.8, or .NET 8 and later) do not replace 3.5, so a program that asks for 3.5 still needs it.
Check whether .NET Framework 3.5 is installed
Right-click Start, open Windows PowerShell (Admin) or Terminal (Admin) and run:
Get-WindowsFeature NET-Framework-Core
The Install State column shows Installed when it is already there. Available or Removed means it is not installed yet.
Method 1: PowerShell (quickest)
In the same administrator window, run:
Install-WindowsFeature NET-Framework-Core
Windows downloads the files from Windows Update, which takes a few minutes. When Success shows True, the feature is installed. A restart is normally not needed; if Restart Needed shows Yes, restart the server.
Method 2: Server Manager
- Open Server Manager, click Manage and then Add Roles and Features.
- Choose Role-based or feature-based installation, select your server and click Next until you reach Features.
- Tick .NET Framework 3.5 Features (it contains .NET Framework 3.5 (includes .NET 2.0 and 3.0)) and click Next.
- The confirmation page may ask Do you need to specify an alternate source path? If the server is connected to the internet, you can ignore this message. Click Install and wait until the installation has finished.
If the installation fails
Errors such as 0x800F081F ("the source files could not be found"), 0x800F0954 or 0x800F0906 mean that Windows could not get the files. Try these two fixes in order.
Fix 1: let Windows use Windows Update for optional features
- Press Win + R, type
gpedit.mscand press Enter. - Go to Computer Configuration > Administrative Templates > System and open Specify settings for optional component installation and component repair.
- Choose Enabled, tick Download repair content and optional features directly from Windows Update instead of Windows Server Update Services (WSUS) and click OK.
- Run
gpupdate /forcein an administrator window, then run Method 1 again.
Fix 2: install from the Windows Server ISO
The files are in the sources\sxs folder of the installation ISO. Use an ISO of the same Windows Server version as your server (for example from the Microsoft Evaluation Center). Copy the ISO to the server, double-click it to mount it as a drive (for example D:) and run one of these commands, with the drive letter of the mounted ISO:
Install-WindowsFeature NET-Framework-Core -Source D:\sources\sxs
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs
Windows 10 and Windows 11
On a server with Windows 10 or 11 Pro, open Control Panel > Programs > Turn Windows features on or off, tick .NET Framework 3.5 (includes .NET 2.0 and 3.0) and click OK. Choose Let Windows Update download the files for you when Windows asks. The command DISM /Online /Enable-Feature /FeatureName:NetFx3 /All in an administrator window does the same.
Windows Server 2008 R2
Windows Server 2008 R2 has been out of support since January 2020. If you still use it, .NET Framework 3.5.1 is a feature in Server Manager > Features > Add Features, or you can run Import-Module ServerManager and then Add-WindowsFeature NET-Framework-Core in PowerShell as administrator. We recommend moving to a current Windows Server version.
Still stuck? Contact us with your Windows version and the full error message.
Need a Windows server? PreVPS offers dedicated Windows servers with Windows preinstalled, and Windows VPS plans with Windows Server 2025, 2022 or 2019 preinstalled at no extra charge (you bring the licence key).