Some applications (like Vision for example) require specific versions of .Net in order to run. Checking the installed version can be tricky. The following PowerShell example will check for a minimum version requirement (in this case .NET v4.6.1).
# PowerShell 5
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' | Get-ItemPropertyValue -Name Release | Foreach-Object { $_ -ge 394254 }
To check for other versions, replace the number. The following table maps versions to these numbers.
.NET Framework version , Value of the Release DWORD
.NET Framework 4.5 , 378389
.NET Framework 4.5.1 , 378675
.NET Framework 4.5.2 , 379893
.NET Framework 4.6 , 393295
.NET Framework 4.6.1 , 394254
.NET Framework 4.6.2 , 394802
.NET Framework 4.7 , 460798
.NET Framework 4.7.1, 461308
.NET Framework 4.7.2 , 461808
For additional information (including other ways to check .Net version) reference this page: https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed