Find Dot NET Version using PowerShell

In this post I will show you how to find Dot NET version using PowerShell. PowerShell method is the most easiest and reliable method to check the .NET framework version on windows computer.

The .NET Framework is a software development framework for building and running applications on Windows. Dot Net Framework is part of the .NET platform, a collection of technologies for building apps for Linux, macOS, Windows, iOS, Android, and more.

There are several ways to find the Dot NET Framework version. You can also use the command prompt or registry to check the Dot NET Framework version. Your computer can be running different versions of Dot NET framework. Determining the latest .NET framework version is required in some cases.

Sometimes you encounter an issue where the application requires a specific version of .NET Framework version installed on the computer. If you know the correct .NET framework version installed on the computer, it becomes easy to install the next version.

At the time of writing this post, .NET Framework 4.8 is the latest version available. If you are running Configuration Manager in your setup, ensure you install .NET Framework 4.8 to avoid the prerequisites warning.

Find Dot NET Version using PowerShell

Using the following steps, you can use PowerShell to check the Dot Net version on your computer.

  • On your computer click Start and launch PowerShell as administrator.
  • In the PowerShell window, copy the below command and press enter key.
  • The output contains the list of .NET Framework versions installed on your computer.
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
Find Dot NET Version using PowerShell
Find Dot NET Version using PowerShell

If you look at the output, you can see all the client version number and full version. Full version indicates the latest installed Dot NET framework version.

Check Release version of .NET using PowerShell

There is another way to check the .NET Framework version using PowerShell. Run the below command in the PowerShell window to determine the release number.

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

When you run the above command, it shows the release value. The Release value represents the version of .NET Framework installed. For instance, in the below screenshot, the PowerShell release value is 528372.

Find Dot NET Version using PowerShell
Find Dot NET Version using PowerShell

The following PowerShell command can be used to check the value of the Release entry to determine whether .NET Framework 4.6.2 or later is installed.

(Get-ItemPropertyValue -LiteralPath 'HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full' -Name Release) -ge 394802


Hi, I am Pragati. As a Technical Consultant, I help businesses harness the latest innovations in Cloud applications, Intune, Windows 365, and more. Sharing my knowledge and insights through this blog to inspire and empower others in their digital transformation. Let's revolutionize the way we work and thrive in the cloud era together!

Related Articles

Back to top button