We can find the .NET version running on a computer by either of the following ways.
Run appwiz.cpl. This shows the list of all the programs installed on your computer.
Check for the entries starting with ‘Microsoft .NET Framework’. You may find multiple entries of .NET Framework like below. The higher version of the .NET package you have is the version running on your computer. In the below case it’s .NET Framework 4.
Find .NET Framework version from command prompt
You can run below wmic command to retrieve the version
wmic product get description | findstr /C:.NET
C:\>wmic product get description | findstr /C:.NET Microsoft .NET Framework 4.5.1
You can list older .NET versions running on your computer by running a simple command shown below.
dir /b %windir%\Microsoft.NET\Framework\v*
Running the above command will print all older .NET versions installed on the computer. Note that this does not show the latest version. So this command can be helpful to find older versions, we should check Appwiz.cpl or use the WMIC command above to find the latest version.
C:\> dir /b %windir%\Microsoft.NET\Framework\v* v1.0.3705 v1.1.4322 v2.0.50727 v3.0 v3.5 v4.0.30319