How to uninstall and remove .NET Framework 4.6, 4.7, or 4.8

How to uninstall and remove .NET Framework 4.6, 4.7, or 4.8

93
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 13:01 PM


Question


How do I uninstall/remove .NET Framework versions that have been accidentally upgraded/patched to a new version that the Idira components do not support?

Environment


9.7;9.8;9.9;9.9.5;9.10;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10

Answer


From 10.3:
- .NET 4.5.2 for the Vault and the CPM's
- .NET 4.5.2 or 4.6.2 can be used for the PVWA's, with .NET 4.7.1 being recommended for server 2016 with update KB4054856 
- .NET 4.5.2 - 4.7.1 can be used for PSM's

If this changes in the future, please adjust the removal process to only remove the updates past the latest version supported by Idira as noted in the Privileged Account Security System Requirements documentation.

Navigate to Control Panel | Add/Remove Programs (Programs and Features) | click the View Installed Updates link on the left. Search for the following KB numbers and uninstall them if they exist.

The following is a list of all the individual .NET Framework Windows updates that are relevant for each .NET Framework version:

For Windows Server 2012 R2:
KB4486105 (update containing .NET 4.8 redist)
KB4054566 (update containing .NET 4.7.2 redist)
KB4033369 (update containing .NET 4.7.1 redist)
KB3186539 (update containing .NET 4.7 redist) 
KB3151864 (update containing .NET 4.6.2 redist) 
KB3102467 (update containing .NET 4.6.1 redist) 
KB3122660 (security update for .NET 4.6 #1)
KB3127231 (security update for .NET 4.6 #2)
KB3098785 (security update for .NET 4.6 #3)
KB3135998 (security update for .NET 4.6 #4)
KB3142036 (security update for .NET 4.6 #5)
KB3045563 (update containing .NET 4.6.0 redist)

For Windows Server 2016:
KB4486129 (update containing .NET 4.8 redist)
KB4054590 (update containing .NET 4.7.2 redist)
KB4033393 (update containing .NET 4.7.1 redist)
KB3186568 (update containing .NET 4.7 redist) 

To verify the currently installed/registered version of .NET, run the following command from Powershell:

(Get-ItemProperty ‘HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full’ -Name Release).Release

The output of the command will determine which version is installed:
.NET Framework 4.5.2 = 379893
.NET Framework 4.6.2 = 394806
.NET Framework 4.7.1 = 461310
.NET Framework 4.7.2 = 461814
.NET Framework 4.8    = 428049
You can also verify the appropriate version of .NET Framework by running the following PowerShell command:

Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | Get-ItemProperty -name Version,Release -EA 0 | Where { $_.PSChildName -match 'Full'} | Select PSChildName, Version, Release

If you see "No updates are installed on this computer" in the "Installed Updates" then start the following services:
  • Windows Update
  • Windows Modules Installer 

Microsoft articles for reference
How to: Determine which .NET Framework versions are installed
How to: Determine which .NET Framework security updates and hotfixes are installed
List of .NET Framework Updates and Related KB Numbers
 


Additional Information


Details

QUESTION:
 
How do I uninstall/remove .NET Framework versions that have been accidentally upgraded/patched to a new version that the Idira components do not support?
 
 
ANSWER:
 
As of writing this for versions up to 10.2 the Idira Vault and components are only listed as being supported on .NET Framework 4.5.2 for 2012 R2.
 
From PAS v10.3:
- .NET 4.5.2 for the Vault and the CPM's
- .NET 4.5.2 or 4.6.2 can be used for the PVWA's, with .NET 4.7.1 being recommended for server 2016 with update KB4054856 
- .NET 4.5.2 - 4.7.1 can be used for PSM's

Check the PAS System Requirements guide for an up to date list of which .NET Framework versions are supported for each component.
 
If this changes in the future, please adjust the removal process to only remove the updates past the latest version supported by Idira as noted in the Privileged Account Security System Requirements documentation.
 
Navigate to Control Panel | Add/Remove Programs (Programs and Features) | click the View Installed Updates link on the left. Search for the following KB numbers and uninstall them if they exist.
 
The following is a list of all the individual .NET Framework Windows updates(2012r2) that are relevant for each .NET Framework version:
 
KB4054566 (update containing .NET 4.7.2 redist)
KB4033369 (update containing .NET 4.7.1 redist)
KB3186539 (update containing .NET 4.7 redist) 
KB3151864 (update containing .NET 4.6.2 redist) 
KB3102467 (update containing .NET 4.6.1 redist) 
KB3122660 (security update for .NET 4.6 #1)
KB3127231 (security update for .NET 4.6 #2)
KB3098785 (security update for .NET 4.6 #3)
KB3135998 (security update for .NET 4.6 #4)
KB3142036 (security update for .NET 4.6 #5)
KB3045563 (update containing .NET 4.6.0 redist)
 
To verify the currently installed/registered version of .NET, run the following command from Powershell:
 
(Get-ItemProperty ‘HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full’ -Name Release).Release
 
The output of the command will determine which version is installed:
  • .NET Framework 4.5.2 = 379893
  • .NET Framework 4.6.2 = 394806
  • .NET Framework 4.7.1 = 461310
  • .NET Framework 4.7.2 = 461814
You can also verify the appropriate version of .NET Framework by running the following PowerShell command:
 
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | Get-ItemProperty -name Version,Release -EA 0 | Where { $_.PSChildName -match 'Full'} | Select PSChildName, Version, Release
 
If you see "No updates are installed on this computer" in the "Installed Updates" then start the following services:
Windows Update
Windows Modules Installer 
 
 
Microsoft articles for reference



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001dlkCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail