While everyday users usually don’t need to worry about which .NET Framework versions run on their devices, some applications depend on specific releases to install and work correctly. In addition, developers often work with multiple versions of the platform to build, test, and validate their applications. As a result, knowing which .NET Framework versions are installed on a computer becomes useful in many different scenarios.
Recently, I needed to verify that the correct .NET Framework versions were available in a pre‑production BizTalk Server 2020 environment to ensure compatibility and avoid deployment issues.
Of course, you can achieve this goal in many ways:
- By accessing the Registry to determine which versions are installed
- By using a reg query in the Command Prompt
- Or, my favorite, to use a simple PowerShell script to query this information for you.
📝 One-Minute Brief
Knowing which .NET Framework versions are installed on a machine is essential for troubleshooting, application compatibility, and upgrade planning. In this post, I explain how to quickly check the installed .NET Framework versions using PowerShell. The article shows which commands to use, where the information is stored in Windows, and how to correctly interpret the results to avoid common mistakes.
To achieve this goal, you can use the following PowerShell script:
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name version -EA 0 | Where { $_.PSChildName -Match '^(?!S)\p{L}'} | Select PSChildName, version
The output will be something like this:

Download
THIS POWERSHELL SCRIPT IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND.
You can download the PowerShell script to identify which .NET Framework versions are installed from GitHub here:
I hope you find this helpful! If you liked the content or found it useful and want to help me write more, you can help us buy a Star Wars Lego for my son!