Go back to the Forums root page... Go back to our Support main page...

A Message Board, Guestbook, or Poll hosted for your website.
Register Login New Posts
 
PJ Technologies > Forums > Goverlan Scope Actions v6 > Find installed applications by file name
 
Username:  
Password:  
 
   
 


Thread Tools Search This Thread 
Reply
 
Author Comment
 
tpugsley
Registered: 01/29/09
Posts: 1

    01/29/09 at 10:50 AM#1

I would like to find installed applications on remote machines by file name. For example, if I am looking for application.exe, I would like to be able to search the remote machines for the file name "application.exe". Is this possible?

pbergeot
Avatar / Picture

Moderator
Registered: 09/06/08
Posts: 357

    01/29/09 at 11:31 AM#2

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.


__________________
Pascal @ PJ Technologies, Inc.
http://www.goverlan.com
wschaber
Registered: 02/17/10
Posts: 9

    03/03/10 at 04:08 PM#3

I used these procedures to find a txt file on my systems and it work fine.  I would like to know if there is a way to actually get the info out of the txt file?


__________________
Wade J Schaber
pbergeot
Avatar / Picture

Moderator
Registered: 09/06/08
Posts: 357

    03/03/10 at 05:10 PM#4

What do you need to do exactly? Meaning, how would you process the text file content of multiple machines?

Would transferring all of these text files under a single directory with the machine name in the file name be good?

__________________
Pascal @ PJ Technologies, Inc.
http://www.goverlan.com
wschaber
Registered: 02/17/10
Posts: 9

    03/03/10 at 06:24 PM#5

Yes, transfering them to a single directory with the system name in the file name will work.


__________________
Wade J Schaber
pbergeot
Avatar / Picture

Moderator
Registered: 09/06/08
Posts: 357

    03/04/10 at 12:00 PM#6

This is possible, but only in Goverlan v7. I just realized that this is a Goverlan v6 thread...

In Goverlan v7, the File>Copy File action is capable to copying a local file to a network share and setting the destination file name to include the client computer name (using Dynamic Values).

This feature is not available in v6...

__________________
Pascal @ PJ Technologies, Inc.
http://www.goverlan.com
wschaber
Registered: 02/17/10
Posts: 9

    03/04/10 at 12:41 PM#7

I am using Goverlan 7. How is it done?


__________________
Wade J Schaber
pbergeot
Avatar / Picture

Moderator
Registered: 09/06/08
Posts: 357

    03/04/10 at 06:34 PM#8

We have created a Tutorial Article which explains how to do that:
How to retrieve a data file from a group of machines and copy them into a central directory

Important Note: You must install Goverlan v7.01.35 and update the Goverlan Agents to version 7.05.03 on your clients machines.
To gain access to the latest version of Goverlan, select Help > Online Access > Check for Updates

__________________
Pascal @ PJ Technologies, Inc.
http://www.goverlan.com
Previous Thread | Next Thread
Reply

  Bookmarks  
Digg Diggdel.icio.us del.icio.usStumbleUpon StumbleUponGoogle Google