Help Center

Follow

How to repair / re-install .NET Framework 3.5

There are times when .NET Framework can get corrupted on a computer. A corrupt .NET 3.5 can prevent PDQ Inventory 1.0 and 1.1 from successfully scanning / managing the computer. To repair .NET Framework 3.5 refer to the instructions below. It is suggested that you log into the problem computer to repair. This 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.

To Repair From The Command Line

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

The next step is to disable the .NET 3 Windows Feature. 

Run the following command at 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 re-enable it.

DISM /online /enable-feature /FeatureName:NetFx3

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

use_dism_to_repair_net.png

 

To Repair Manually from GUI

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

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

After Windows disables the feature you will need to go back  re-enable Microsoft .NET Framework 3.5.1

 use_Windows_Features_to_Repair.png

 

Windows XP / Windows Vista / Windows Server 2008

To Repair From Command Line

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

The next step is to call the Setup.exe and pass the appropriate command line arguments. 

Run the following command at 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 / repair via PDQ Deploy. Instead use the

/q

argument as this will suppress all install windows.

To Repair Manually from GUI

Go to the .NET setup directory in %WINDIR%\Microsoft.NET\Framework\v3.5\Microsoft .NET 3.5 SP1 and run setup.exe. After the .NET installation files are loaded the following window will appear. Choose to Repair (recommended) or Uninstall. If you choose to Uninstall you will need to re-install .NET again.

net_repair.png

 

If you want a comprehensive resource to reference .NET repairs you should check out this excellent article from Aaron Stebner's WebLog

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk