Skip to content

Instantly share code, notes, and snippets.

@ChaosEngine
Created August 4, 2020 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChaosEngine/fe6f074935e45c43d0703bee9dd87c06 to your computer and use it in GitHub Desktop.
Save ChaosEngine/fe6f074935e45c43d0703bee9dd87c06 to your computer and use it in GitHub Desktop.
PowerShell script to return versions of .NET Framework on a machine
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse |
Get-ItemProperty -name Version,Release -EA 0 |
Where { $_.PSChildName -match '^(?!S)\p{L}'} |
Select PSChildName, Version, Release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment