Goverlan v6 doesn’t have a native attribute to query if a file exists, however you can still do it using WMI thru Goverlan. Note that WMI must be enabled and authorized on your client machines for this to work.
You will need to know the full file path (as it gets harder if you have to search for a file).
Here are the instructions:
Goverlan Scope Action has a special Action sub-category called: WMI Objects. This category lists the predefined Report/Set and Execute WMI actions. This list is defined by the Browser View list of WMIX.
Let’s define a new root object in WMIX which queries your application file information so that we can use it in a scope action.
Assuming that you need to find out if the following file exists on a system
C:\Program Files\Some Applications\Application.exe
· Open WMIX and set the focus (Connect) to your local machine
· Select the Query WMI tab at the bottom of WMIX.
· Enter the following query:
SELECT * FROM CIM_DataFile WHERE Name = "C:\\Program Files\\Some Application\\Application.exe"
· Run the query and confirm that an instance of the Application.exe file is queried (if it exists on your machine), or that at least it doesn’t generate a error message.
· If confirmed, click on the Add Query to Browser View button located on the top right corner of the Query window. Enter a Query name (for instance: ‘My Application Information’) and click on Ok and No.
· Close WMIX
Now that we have modified the WMIX Browser View list, let’s define our scope action:
· Create a new scope action and define your scope, then go to Conditions.
· Under Condition, click on Add / Remove and select:
Set Computer Condition > WMI Objects > [QUERY] My Application Information > Caption
Set the Condition to ‘NOT=’ and the desired value to the empty string.
This condition will filter out the machines which do not have the application installed.
· Select the Actions tab, click on Add / Remove and select:
Report Computer Property > WMI Objects > [QUERY] My Application Information > All xxx Information
or alternatively for a cleaner report, select individual attributes such as:
> Report Computer Property > WMI Objects > [QUERY] My Application Information > Creation Date
> Report Computer Property > WMI Objects > [QUERY] My Application Information > Last Accessed
> Report Computer Property > WMI Objects > [QUERY] My Application Information > Version
· Complete and run your scope action. Then open the report in HTML – Report Format.
The output of the scope action will be a list of every machine which has this application file on the hard drive.