Skip to content

Instantly share code, notes, and snippets.

@apandrade
Last active March 13, 2024 15:12
Show Gist options
  • Save apandrade/99f2eb214a629e58fc1dfa1dcf9d3bf4 to your computer and use it in GitHub Desktop.
Save apandrade/99f2eb214a629e58fc1dfa1dcf9d3bf4 to your computer and use it in GitHub Desktop.
Use it to figure out what version of .NET Framework is installed
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