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

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!
  • Is it possible to use script variables for a custom inventory item?
Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 11/23/2011 by: cmccracken
Orange Senior Belt

Please log in to comment
0
that'd be awesome, but how do I do that?
Answered 11/23/2011 by: lefttunknown
Orange Belt

Please log in to comment
0
What is the path to your file?

Casey
Answered 11/23/2011 by: cmccracken
Orange Senior Belt

Please log in to comment
0
c:\temp

and the file name is TeRisClean.txt
Answered 11/23/2011 by: lefttunknown
Orange Belt

Please log in to comment
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
Answered 11/23/2011 by: cmccracken
Orange Senior Belt

Please log in to comment
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.
Answered 11/23/2011 by: lefttunknown
Orange Belt

Please log in to comment
0
You bet. You can always force an inventory on a PC to see if the rule worked.

Casey
Answered 11/23/2011 by: cmccracken
Orange Senior Belt

Please log in to comment
0
Now you can label those machines with a smart label or do a search on machines that have that "software" item.
Answered 11/23/2011 by: GillySpy
Seventh Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity