Skip to content

Instantly share code, notes, and snippets.

@jhorsman
Created January 16, 2014 12:48
Show Gist options
  • Save jhorsman/8454479 to your computer and use it in GitHub Desktop.
Save jhorsman/8454479 to your computer and use it in GitHub Desktop.
Verify which .NET Frameworks are installed through a PowerShell command. This works for .NET 4.5.1 as well, unlike many other comparable scripts. Copied from http://stackoverflow.com/a/3495491/1678525
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse |
Get-ItemProperty -name Version -EA 0 |
Where { $_.PSChildName -match '^(?!S)\p{L}'} |
Select PSChildName, Version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment