/build/static/layout/Breadcrumb_cap_w.png

How can I find a folder on all PCs

I need to be able to run a report in Dell KACE to identify PCs that contain a certain folder. I tried creating a Software entry for the Folder Name using the FileExists path, but it is not returning any items.

1 Comment   [ + ] Show comment
  • The Secure Folder is in the user's My Documents folder. This may impact the format of the ShellCommandTextReturn format. - greenmg 8 years ago

Answers (1)

Posted by: Nico_K 8 years ago
Red Belt
1
Create a Custom Inventory Item:
Go to Inventory > Software > Choose Action > New
Fill the CIR field: ShellCommandTextReturn(cmd /c dir c:\strange_folder /s)
This fills the Custom Inventory with results which are not boolean.
If your CIR consists of boolean results (like FileExitst, which is always true or false) they are not added to the custom inventory and cannot be queried.
Then you can create a report about this CIR.

In your case you have a software item which is true on all machines which has the software installed.
If you click to it you see on the bottom which systems have it.


Comments:
  • I am somewhat new to this. Please verify that I am doing this correctly:

    I created an inventory item named Secure Folder and put this in the CIR: ShellCommandTextReturn(cmd /c dir c:\Secure Folder/s)

    I then created a report with the following filter:

    Custom Item Secure Folder is NOT NULL

    Report does not return any results.

    Please advise. Thanks - greenmg 8 years ago

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