How to Reinstall .NET Framework on Windows Server 2022

How to Reinstall .NET Framework on Windows Server 2022

Estimated reading time: 2 minutes

If you’ve accidentally removed the .NET Framework feature from your Windows Server 2022 and need to reinstall it, follow these steps to get it back up and running.

Step 1: Download the Installation Media

  1. Visit the Microsoft Evaluation Center to download the Windows Server 2022 installation media or the Features on Demand (FoD) ISO.
  2. Once downloaded, mount the ISO to a drive, for example, D:.

Step 2: Install .NET Framework Using DISM

  1. Open Command Prompt with administrative privileges.
  2. Run the following command to install the .NET Framework feature:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs

Step 3: Verify Installation

  1. After the installation completes, verify that the .NET Framework feature is installed by running:
DISM /Online /Get-Features /Format:Table | find "NetFx3"

Step 4: Install .NET Framework 4.0 (If Required)

If you encounter an error stating that you need .NET Framework v4.0.30319, follow these steps:

  1. Download the .NET Framework 4.0 Standalone Installer from the Microsoft Download Center.
  2. Run the installer and follow the on-screen instructions to complete the installation.

Alternatively, you can use the DISM command if you have the Windows Server installation media:

  1. Mount the ISO to a drive, for example, D:.
  2. Open Command Prompt with administrative privileges and run the following command:
DISM /Online /Enable-Feature /FeatureName:NetFx4 /All /LimitAccess /Source:D:\sources\sxs

Additional Resources

For more detailed instructions, refer to the Microsoft documentation.

Additionally, there is a KB article for the cumulative update for .NET Framework 3.5 and 4.8 on Windows Server 2022: KB5049617.

Share this content:

Click to rate this post!
[Total: 1 Average: 5]
How to Reinstall .NET Framework on Windows Server 2022

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top