BASIC

Determine which .NET Framework versions are installed

We can find the installed dot net version from registry or using power shell script, refer below detail.

Registry path:

Find .NET Framework versions 4.5 and later in the registry
From the Start menu, choose Run, enter regedit, and then select OK.
You must have administrative credentials to run regedit.
In the Registry Editor, open the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full. If the Full subkey isn't present, then you don't have the .NET Framework 4.5 or later installed.
 Note
The NET Framework Setup folder in the registry does not begin with a period.
Check for a DWORD entry named Release. If it exists, then you have .NET Framework 4.5 or later versions installed. Its value is a release key that corresponds to a particular version of the .NET Framework. In the following figure, for example, the value of the Release entry is 378389, which is the release key for .NET Framework 4.5.

The following table lists the value of the Release DWORD on individual operating systems 

For more in detail refer Microsoft link below.

https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed

Note: 

Restart the required after installed .net version to view in the registry.

or

Save as filename.ps1 and run from PowerShell to view the installed .net version.Get-ChildItem ‘HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP’ -recurse |Get-ItemProperty -name Version,Release -EA 0 |Where { $_.PSChildName -match ‘^(?!S)\p{L}’} |Select PSChildName, Version, Release

Sample Output:

Leave a Reply

Your email address will not be published. Required fields are marked *