Skip to main content

How to Install .NET Framework 3.5 on Windows Server 2022

Follow this step-by-step guide to install .NET 3.5 on a Microsoft Windows Server 2022 machine.

If you're seeing error 0x800F0950 or "The following feature couldn't be installed: .NET Framework 3.5 (includes .NET 2.0 and 3.0)" while installing .NET 3.5 on Windows Server 2022, follow the steps below. This happens because Server 2022 needs to install .NET 3.5 from local installation media rather than Windows Update.

.NET Framework 3.5 installation error dialog showing code 0x800F0950

Step #1: Download the Windows Server 2022 ISO

  1. Download the ISO file.

Microsoft Evaluation Center — Windows Server 2022 ISO download page

Step #2: Mount the ISO

  1. Locate the downloaded ISO file.

  2. Right-click on it and select Mount.

  3. Note the drive letter assigned to the mounted ISO (e.g., D:).

Right-click menu on the Windows Server ISO showing the Mount option

Step #3: Install .NET 3.5 with a Single Command (Recommended)

This is the fastest fix and resolves the issue for most users. Open Command Prompt as Administrator and run the following, replacing D: with your ISO's actual drive letter from Step 2:

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

Once it finishes, restart the server. This single command points DISM directly at the offline source files instead of Windows Update, which is what error 0x800F0950 indicates is missing.


Step #4: Still Failing? Try the Registry & Group Policy Method

If Step 3 still fails, it usually means a Group Policy setting is overriding the source path. Use this more thorough method instead:


1. Open Registry Editor

  • Press Win + R, type regedit, and press Enter.

Windows search results showing the Registry Editor app


2. Navigate to the Correct Registry Key

  • Go to:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Servicing


3. Create or Modify LocalSourcePath

  • If LocalSourcePath does not exist: right-click in the right pane, select New > String Value, and name it LocalSourcePath.

  • Set its value to the full path of the sources\sxs folder on your mounted ISO, for example:

    D:\sources\sxs

    Replace D: with the actual drive letter of your mounted ISO.


4. Ensure Group Policy Does Not Override Settings

  • Open Group Policy Editor by pressing Win + R, typing gpedit.msc, and pressing Enter.

  • Navigate to:

    Computer Configuration > Administrative Templates > System
  • Edit the policy Specify settings for optional component installation and component repair: enable it, and set the source path to the same location (e.g., D:\sources\sxs).


5. Restart the Server

  • Restart the server, then retry Step 3's command or install via Server Manager below.


Step #5: Install via Server Manager (Alternative)

  1. Open Server Manager.

  2. Select Add Roles and Features.

  3. Navigate through the wizard and select .NET Framework 3.5 Features.

  4. When prompted for a source, point it to the same sources\sxs path used above.

  5. Proceed with the installation.

Server Manager Add Roles and Features wizard with .NET Framework 3.5 Features selected


Need Assistance?

Our support team is available 24/7. If you have any questions or run into issues, open a support ticket from your QuantVPS dashboard and we'll get back to you as quickly as possible.

Did this answer your question?