.NET patching "This update is not applicable to your computer." (CA20-05)
197
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:54 PM
Symptom
When attempting to install a standalone Microsoft .NET Framework patch per Idira Security Bulletin CA20-05, an error appears stating "This update is not applicable to your computer".
A Windows Setup event "Windows update could not be installed because of error 2149842967" may accompany the failure in the event log.
Environment
v9.0;v9.1;v9.2;9.3;9.5;9.6;9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6 This error may be encountered on any system when attempting to install the Windows Update Standalone .NET Framework updates, but is particularly likely to be experienced when attempting the install on a hardened Vault server.
Cause
This error will appear when attempting to install a patch for a .NET version that is not installed on the server.
Resolution
The installed versions of the .NET Framework are listed in "Version" registry REG_SZ values for their respective release version located under:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP
and in some cases for 32-bit apps:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP
The following two PowerShell lines query each registry location mentioned above (respectively), and recursively search for and return "Version" entries. This method should work fine in most situations, but as it is a known possibility for a version to be excluded from the results in specific situations, it is recommended to still manually check the registry locations if unexpected results are returned.
gci 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | gp -name Version -EA 0 | where { $_.PSChildName -match '^(?!S)\p{L}'} | select PSChildName, Version
gci 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP' -recurse | gp -name Version -EA 0 | where { $_.PSChildName -match '^(?!S)\p{L}'} | select PSChildName, Version
Using this information, you should be able to download and install the correct Windows Update Standalone Patch for the applicable version(s) of the .NET Framework installed on the system from the Microsoft CVE URL provided in the Idira CA20-05 Security Advisory (https://community.cyberark.com/s/article/CyberArk-Security-Bulletin-CA20-05).
Ref: https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed#detect-net-framework-10-through-40
Ref: https://docs.microsoft.com/en-us/troubleshoot/dotnet/framework/determine-dotnet-versions-service-pack-levels