I have an excel spreadsheet with 182 computers names on it. I need to query the 182 remote computers for the application install date of (specific application xxxxxxxx) with the output being to an excel spreadsheet which lists the computer name and appliation name and application install date.
I have #1
gci -path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | where {$_.Getvalue("DisplayName") -like '*xxxxxxxx*'} | % {Write-Host $_.Getvalue("DisplayName"), $_.Getvalue("InstallDate")}
I have #2
$computername, $outputdir="C:\application", $compsfile=".\complist.xlsx")
I'm new to scripting. Not sure if #1 and #2 combined will get me the result I need nor what the proper syntax is to add #2 to #1 so the output to an excel spreadsheet lists remote computer name, application name and application install date.
I'm sure this is simple but I'm learning.