/build/static/layout/Breadcrumb_cap_w.png

How do I find a file on all computers?

I need help setting this up. I imagine this can be done via a script or a report.

I need to see if a file exists on the computers in our network. I ran a script using Kace and the script created a flag file in the temp folder. Now I need to see which computers have that flag file, rather, which one's don't. I see that I can "verify a file" using a kace script but how do I report back or log the name of the computer that has the file? I tried running a batch file which should have saved the name of the computer out to a network share but I haven't had any luck using Kace with network shares.

Any ideas?

2 Comments   [ + ] Show comments
  • Hello, is there any way to use a wildcard for this search? I need to find out if a .sys file exists in a path off of the C: drive but each file is named with the name of the host so the file name will be different. But the extension of .sys will be the same. I suppose I will need to use a KACE_MACHINE name variable here? How difficult would this be? Thanks in advance! - 4lienau 8 years ago
  • Is it possible to use script variables for a custom inventory item? - 4lienau 8 years ago

Answers (8)

Posted by: cmccracken 13 years ago
Orange Senior Belt
0
What if you created a custom software inventory item using FileExists(path)? Then you wouldn't need the script/flag file. You could see which PCs had the file by selecting the software item, or by creating a report.

Casey
Posted by: lefttunknown 13 years ago
Orange Belt
0
that'd be awesome, but how do I do that?
Posted by: cmccracken 13 years ago
Orange Senior Belt
0
What is the path to your file?

Casey
Posted by: lefttunknown 13 years ago
Orange Belt
0
c:\temp

and the file name is TeRisClean.txt
Posted by: cmccracken 13 years ago
Orange Senior Belt
0
1. Go to Inventory >> Software and add a new item.
2. Fill in top info.
3. As your Custom Inventory Rule put FileExists(c:\temp\TeRisClean.txt). TIP: If you click the yellow question box next to Custom Inventory Rule, it will list other functions you can use.
4. Save.

As PCs check in, you should see the number of PCs with your software item increase.

Casey
Posted by: lefttunknown 13 years ago
Orange Belt
0
wow. thats incredible simple. I set it up so we'll see if it works. If so, I'm going to use this all the time. Thanks a mil.
Posted by: cmccracken 13 years ago
Orange Senior Belt
0
You bet. You can always force an inventory on a PC to see if the rule worked.

Casey
Posted by: GillySpy 13 years ago
7th Degree Black Belt
0
Now you can label those machines with a smart label or do a search on machines that have that "software" item.
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