Get-FrameworkVersion.ps1 displays a list of all .NET Framework versions installed on a computer.
This script provides support for getting the versions of .NET Framework on remote computers. It also reports on any BlockNetFramework registry keys present on the computer.
Operation is simple:
PS C:\scripts> .\Get-FrameworkVersion.ps1
v2.0.50727 2.0.50727.4927 SP2
v3.0 3.0.30729.4926 SP2
v3.5 3.5.30729.4926 SP1
Current .NET Framework version: 4.8 on Windows 10 (4.8.03752 = release 528040)
No versions of the .NET Framework are blocked on the computer
For more information on this script, see https://www.essential.exchange/2018/01/10/get-frameworkversion-1-6/.