Need a Custom Inventory rule that will find a file and reply the version and path of file found

I was using something similar to this :

FileVersionEquals(C:\Program Files\Internet Explorer\iexplore.exe,8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339))

While the above works it does not reply the file if the file may exist elsewhere with a different path.

My goal is the following:

Find .file and reply path of where .file was found, the version# of .file, and endpoint name where .file was found

0 Comments   [ + ] Show comments

Answers (1)

Posted by: PaulGibson 1 month ago
Orange Belt

Here's a PowerShell command that I think will give you the information you're looking for. This command looks for both the 32-bit and the 64-bit versions of iexplore.exe. Off the top of my head, I don't remember how to setup a CIF to use PowerShell, but this may help.

Get-ChildItem -File iexplore.exe -Path 'C:\Program Files\', 'C:\Program Files (x86)\' -Recurse -ErrorAction SilentlyContinue | ForEach {"$($_.FullName),$(($_.VersionInfo).ProductVersion),$($Env:ComputerName)"}

C:\Program Files\Internet Explorer\iexplore.exe,11.00.19041.1,PAUL-WIN10

C:\Program Files (x86)\Internet Explorer\iexplore.exe,11.00.19041.1,PAUL-WIN10

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ