Skip to content

How to repair or reinstall .NET Framework 3.5

Shane head shot
Shane Corellian|Updated February 20, 2024
General darkBlue
General darkBlue

There are times when .NET Framework can get corrupted on a computer. A corrupt .NET 3.5 can prevent PDQ Inventory from successfully scanning or managing the computer.

To repair .NET Framework 3.5, refer to the instructions below. We suggest you log into the problem computer to repair. That way, you can get some good feedback on whether the repair worked.

Windows 7 & Windows Server 2008 R2

.NET Framework 3.5 SP1 is included in these two OSes and cannot be installed, repaired, or uninstalled via the .NET Framework setup file. They need to be enabled or disabled as Windows Features. In Windows 7 and 2008R2, disabling .NET 3.5 SP1 is the same thing as uninstalling or removing. Note: A reboot may be required after disabling or removing .NET 3.5 SP1.

To repair from the command line

  1. Open cmd.exe in an Elevated session (needed if UAC is implemented).

  2. Then, disable the .NET 3 Windows Feature

  3. Run the following command in your command line:

DISM /online /disable-feature /FeatureName:NetFx3

(Note that when using DISM all Feature Names are Case Sensitive. Using “netfx3” will result in a failure.)

After you successfully disable the NetFx3 feature, you can now reenable it. Reenabling is the same thing as installing.

DISM /online /enable-feature /FeatureName:NetFx3

The screenshot below shows the results of both commands run in sequence.

use dism to repair net resized 600

To repair manually from GUI

  1. Go to Control Panel > Programs and Features > Turn Windows features on or off.

  2. Clear the check box for Microsoft .NET Framework 3.5.1. Say OK.

  3. After Windows disables the feature, you will need to go back and reenable Microsoft .NET Framework 3.5.1.

use Windows Features to Repair resized 600
DI WhiteBG

Install (and uninstall) without disruption

Try PDQ Deploy & Inventory — free for 14 days.

Windows XP / Windows Vista / Windows Server 2008

To repair from the command line

  1. Open cmd.exe in an Elevated session (needed if UAC is implemented).

  2. Call the Setup.exe and pass the appropriate command line arguments. 

  3. Run the following command in your command line:

"%WINDIR%\Microsoft.NET\Framework\v3.5\Microsoft .NET 3.5 SP1\setup.exe" /qb /norestart

If you pass the

/qb

argument you will still see the uninstall window, but you will not be prompted for any input. Do not use /qb if you are going to deploy the .NET installation or repair via PDQ Deploy. Instead, use the

/q

argument as this will suppress all install windows.

To repair manually from GUI

  1. Go to the .NET setup directory in %WINDIR%\Microsoft.NET\Framework\v3.5\Microsoft .NET 3.5 SP1 and run setup.exe.

  2. After the .NET installation files are loaded, the below window will appear.

  3. Choose to Repair (recommended) or Uninstall. If you choose to uninstall, you will need to reinstall .NET again.

net repair resized 600

Shane head shot
Shane Corellian

Shane is the co-founder of PDQ.

Related articles