My goal is to produce a quick report that the techs can use to find inconsistencies involving Adobe Flash and other installs. I have the following code and it works as far as giving the information, but I am missing the computer name. I don't think I am understanding or not using the right syntax for both pieces of information to display.
$cn = Import-Csv -Path "c:\ps\computerlist.csv"
ForEach-Object -Process {
Get-ChildItem C:\Windows\System32\Macromed\Flash | select VersionInfo | Format-List
}
I am using v4.0 on a Windows 7 machine. The clients are all Windows 7 with defaults. Do I need to place an array in the code and then pass the get-childitem statement?