/build/static/layout/Breadcrumb_cap_w.png

File Search

I am trying to do an inventory of the tnsnames.ora file on all PC's in our environment, including the file path. Right now, I'm trying this using a custom inventory rule:

FilenamesMatchingRegexReturn(C:\, ora$, TEXT)

So far, this is returning hits on machines that have this file. However, I expected this custom inventory rule to return the file path as well, and it's not. How can I get the file path?

0 Comments   [ + ] Show comments

Answers (4)

Posted by: dchristian 13 years ago
Red Belt
0
WkuCardinal,

If nothing is returned that means the inventory rule could not find a match.

However regardless of a match the custom inventory rule will be displayed under installed software because it was executed against the machine.

Is the file you are looking for in the root of the C drive?

The custom inventory rule will not perform a recursive search through the sub folders.

Below is a quick example of a similar rule that is returning the path.




Comments:
  • good Day dchristian

    how are you doing

    i am still a newy in kace but find the above interesting

    what i i want to do is find a path to c:\windows\system32\install.txt filepath

    i installed a program via dependency program name is (Desktop agent 9 2013) and find it difficult to pull a report to show the "install.txt file
    after the program installs it creates a text file in the path as shown above

    is the above related? and if so

    how can it help me?

    thanking you inadvance

    let me know if you need more details - burtono 10 years ago
Posted by: wkucardinal 13 years ago
Orange Senior Belt
0
The file is located in different installation directories. That's the point of trying to use the KBOX to find the files - I'm not sure where they are all located. I tried using a script, also, which is helpful, but I am having trouble getting reporting out of the log file generated from scripts.
Posted by: dchristian 13 years ago
Red Belt
0
hmm.... this is how i would do it.

Try creating a vbsrcipt that recursively searches the file system.

When the file is found have it update a registry key (created by you).

Then its simply a matter of pointing to that registry key in your custom inventory rule.
Posted by: wkucardinal 13 years ago
Orange Senior Belt
0
I'm thinking that will be the solution as well..
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

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

Sign up! or login

Share

 
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