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

listing IE versions

$
0
0

Hello..

when i run the below script it gives me what i need but it adds extra data that i dont need.

Comments Company   Name  File  Build Part   File      Description File Major Part File  Minor  Part File  NameFile Private Part File Version Internal Name Is Debug Is Patched Is Private  BuildIs PreRelease Is Special Build LanguageLegalCopyrightLegalTrademarksOriginalFilenamePrivateBuildProductBuildPartProductMajorPartProductMinorPartProductNameProductPrivatePartProductVersionSpecialBuild
























these are the columns the csv shoots out. all i need is the computer name and product version.

What can i add to this script to only have that info displayed

Script:

gc c:\temp\pc1.txt | foreach {[system.diagnostics.fileversioninfo]::GetVersionInfo("\\$_\C`$\program files\internet explorer\iexplore.exe") } |  export-csv c:\temp\ieversion1.csv

thank you.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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