EDIT: Updated to include releases up to 4.7.2 (and Windows 10 1803)

For the most updated version: https://github.com/AutomatedLab/AutomatedLab.Common/blob/develop/AutomatedLab.Common/Common/Public/Get-DotNetFrameworkVersion.ps1


This script reports the various .NET Framework versions installed on the local or a remote computer.

It queries the registry for the information (Remote Registry is required for querying the remote computers), 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:
 

 

 

 

 

 

 

PowerShell
Edit|Remove
.\Get-NetFrameworkVersion.ps1

 

 

 
Or to get the .NET Framework versions installed from several remote machines, run:

 

 

 

 

 

 

 

PowerShell
Edit|Remove
.\Get-NetFrameworkVersion.ps1 -ComputerName Web2008R2A, Web2012R2A, Web2016A