I have this PowerShell script that get's .Net framework version from computer. I also need to apply "Get-WmiObject Win32_ComputerSystem" to this script to have both, computer names as well as .Net framework version. How do I go about this?
Get-ADComputer -Filter * | ForEach { 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 } | Export-csv C:\temp\Netversion.csv