3

Is there a way to find out installed versions of the .NET framework by using a PowerShell command?

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
Andrew
  • 31
  • 1
  • 2
  • possible duplicate of [Powershell to return versions of .NET Framework on a machine?](http://stackoverflow.com/questions/3487265/powershell-to-return-versions-of-net-framework-on-a-machine) – websch01ar Sep 19 '14 at 15:16

1 Answers1

4

The installed .NET frameworks are listed in the registry. There is a built-in registry provider in PowerShell, so you can query it like you'd query a filesystem path:

gci "hklm:\SOFTWARE\Microsoft\NET Framework Setup\NDP"
Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
vonPryz
  • 19,131
  • 6
  • 48
  • 56
  • 2
    Look at this [question](http://stackoverflow.com/questions/3487265/powershell-to-return-versions-of-net-framework-on-a-machine). Find the answer from Jakul and you will see that the newer version are in subs and you need to use -recurse to find them. – Matt Sep 19 '14 at 15:56