header image

Finding a file version

Posted by: | September 5, 2014 Comments Off on Finding a file version |

Interesting question on the forum – how to find the file version of IE on remote machines?

Get-CimInstance -ClassName CIM_DataFile -Filter “Name = ‘C:\Program Files\Internet Explorer\iexplore.exe’”  | select -ExpandProperty Version

Use the CIM_dataFile class.  Its one of the few CIM_ classes that doesn’t have a Win32_ equivalent.

In this case you know the path to the file – note the \ as you have to escape a single in WMI filters

Source: Richard Siddaway

under: Uncategorized

Comments are closed.