This script will detect the various .NET Framework versions installed on the local or remote computer(s).
It queries the registry for the information (Remote Registry is required for querying the remote computer), and lists the .NET Framework version and it’s build.
The logic and version information are based on https://msdn.microsoft.com/en-us/library/hh925568
To get the .NET Framework versions installed on the local machine, run:
.Get-NetFrameworkVersion.ps1 -ComputerName Web2008R2A, Web2012R2A, Web2016A