Is there a way to find out installed versions of the .NET framework by using a PowerShell command?
Asked
Active
Viewed 9,999 times
3
-
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 Answers
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
- 30,738
- 21
- 105
- 131

vonPryz
- 22,996
- 7
- 54
- 65
-
2Look 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