Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Getting installed software from OU

$
0
0

I know there are tons of forums on the net on this topic, I have been google-ing for a few days, but nothing does exactly what I am looking for.

I am trying to query specific computers in an OU for installed software. Sometimes when we deploy software the end user reports (in typical end user style) the software hasn't "installed anywhere" I would like to run a script to query those machines and extract the installed software.

Here is what I have been working with

 $Allworkstations = Get-ADComputer -Filter {Name -like "*FH0627*"} -Properties * | Select Name,OperatingSystem 
 $Allworkstations | Export-Csv -Path "H:\My Documents\Software\AllWorkstations.csv" -NoTypeInformation

 $Allworkstations  
 ForEach-Object {Get-ChildItem HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* } 
 

The top half works, I can return the machines in the OU with the correct machine name and OS version. The problem comes when I try to pipe those results and get the software. What happens is the Get-Child Item queries MY workstation, not the remote.

I have tried exporting to a CSV, and then in a separate powershell script loop the csv for results and the same thing happens.

Any Idea's?


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>