Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
Windows Server

How to Install .NET Framework 3.5 and 4.8.1 on Windows and Windows Server

How to install .NET Framework on Windows guide by 99RDP

Many Windows programs, especially older business apps, trading platforms and installers, still need the classic .NET Framework. Windows already includes .NET Framework 4.x, but apps built for versions 2.0 to 3.5 need .NET Framework 3.5 as well, and that's where errors such as 0x800f0954 and 0x800F081F show up. This guide shows how to install .NET Framework 3.5 and 4.8.1 on Windows 10, Windows 11 and Windows Server, how to do it silently, how to check the installed version, and how to repair it.

Quick answerOpen PowerShell as administrator and run

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All

That installs .NET Framework 3.5 (which includes 2.0 and 3.0). If it fails with 0x800f0954, see the fixes below. For .NET Framework 4.8.1, run Windows Update or the offline installer from Microsoft.

Which .NET Framework do you need?

  • .NET Framework 4.8.1 is the latest and final 4.x version. It's built into Windows 11 22H2 and later and can be installed on Windows 10 21H2+, Windows Server 2022 and newer. Windows Server 2016/2019 can use 4.8. Every 4.x version is an in-place update, so 4.8.1 also runs apps built for 4.0–4.8.
  • .NET Framework 3.5 runs apps built for 2.0, 3.0 and 3.5. It's installed separately and runs side by side with 4.x.
  • .NET 8, 9, 10 (without "Framework") are a different, modern runtime. If an app asks for ".NET Desktop Runtime 8", installing .NET Framework won't help; download that runtime from Microsoft's .NET site.
Ways to install .NET Framework 3.5 on Windows: Windows Features, PowerShell with the sxs source, DISM
Ways to install .NET 3.5

Install .NET Framework 3.5 on Windows 10 and 11

  1. Press Win + R, type optionalfeatures and press Enter.
  2. Tick .NET Framework 3.5 (includes .NET 2.0 and 3.0) and click OK.
  3. Choose Let Windows Update download the files for you and restart if asked.

Windows 11 26H1 and later: .NET Framework 3.5 is no longer a Windows optional component. Download Microsoft's standalone .NET Framework 3.5 installer for your Windows version from the official .NET Framework 3.5 SP1 download page instead. Windows 10 and Windows 11 up to 25H2 are not affected by this change.

Diagram of where .NET Framework 3.5 files come from: Windows Update or the sxs folder on the installation ISO
Where the files come from

Install .NET Framework 3.5 on Windows Server

In Server Manager → Add Roles and Features → Features, tick .NET Framework 3.5 Features. Or use PowerShell:

Install-WindowsFeature Net-Framework-Core

Servers often have no access to Windows Update for features. Then point the installer at the installation media: mount the Windows Server ISO (say as D:) and run

Install-WindowsFeature Net-Framework-Core -Source D:\sources\sxs
# or
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs

The ISO must match the server's version and language.

Troubleshooting .NET Framework 3.5 install errors like 0x800F0954 and 0x800F081F
Install errors

Fix error 0x800f0954 and 0x800F081F

Both mean Windows couldn't find the source files. 0x800f0954 usually happens when the PC or server gets updates from WSUS, which doesn't provide optional features.

  1. Open gpedit.msc → Computer Configuration → Administrative Templates → System.
  2. Open Specify settings for optional component installation and component repair, set it to Enabled and tick Download repair content and optional features directly from Windows Update instead of Windows Server Update Services (WSUS).
  3. Run gpupdate /force and try the install again.

If the machine has no internet access, use the ISO \sources\sxs method above. Also run DISM /Online /Cleanup-Image /RestoreHealth if component store corruption is suspected.

Install or update .NET Framework 4.8.1

  • Windows Update delivers it on supported systems; check Settings → Windows Update → Advanced options → Optional updates.
  • Or download the offline installer from Microsoft's .NET Framework 4.8.1 download page and run it.
  • Silent install for scripts and RMM tools:
    ndp481-x86-x64-allos-enu.exe /q /norestart

Windows 7 and Server 2008 R2 can't run 4.8.1; the last version for them is 4.8.

Check which versions are installed

# .NET Framework 4.x release number
Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full' Release

# Is 3.5 enabled?
Get-WindowsOptionalFeature -Online -FeatureName NetFx3 | Select State

A release number of 533320 or higher means 4.8.1; 528040 or higher means at least 4.8.

Repair .NET Framework

  1. For 3.5, turn it off in optionalfeatures, restart, then turn it on again.
  2. For 4.x, run Microsoft's .NET Framework Repair Tool, then sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth.
  3. Install the latest cumulative update for .NET Framework from Windows Update.

Can you uninstall .NET Framework?

On Windows 10, 11 and Server 2016+, .NET Framework 4.x is part of the operating system and can't be removed. .NET Framework 3.5 can be turned off in Windows Features or with DISM /Online /Disable-Feature /FeatureName:NetFx3. Avoid third-party "cleanup" tools that delete framework files; they often break Windows Update.

Frequently asked questions

How do I install .NET Framework 3.5 on Windows 11?

On Windows 11 up to 25H2, enable it in Windows Features (optionalfeatures). On 26H1 and later, use Microsoft's standalone .NET Framework 3.5 installer.

How do I install .NET Framework silently?

Use DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /Quiet for 3.5, and ndp481-x86-x64-allos-enu.exe /q /norestart for 4.8.1.

What does error 0x800f0954 mean?

Windows couldn't download the feature files, usually because updates come from WSUS. Allow downloads from Windows Update in Group Policy or install from the ISO's sources\sxs folder.

Do I need .NET Framework 3.5 if I have 4.8.1?

Only if an app was built for .NET 2.0–3.5. Version 4.8.1 doesn't run those apps on its own.

Minakshi, Server Administrator L1 at 99RDP
Written byMinakshiServer Administrator L1, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More Windows Server guides

All Windows Server guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services