Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Missing computername in output of script

$
0
0

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?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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