How do I get the current .NET version using PowerShell?

Problem:

How do I get the current .NET version using PowerShell?

Solution:

Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name Version, Release -ErrorAction 0 | where { $_.PSChildName -match '^(?!S)\p{L}'} | select PSChildName, Version, Release

Leave a Reply

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