Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Files & Directories - Presence of multiple files?

How would one create a collection where all file names specified have to be present for the computer to be in a collection?  

All

  1. Files & Directories | Path | Starts With | C:\path\to\folder
  2. Files & Directories | Name | Contains | File1.exe

And that work. It shows multiple computers. 

But if I add another file to check, File2.exe, it returns no computers -- even though both files should exist on said computers. 

Doesn't work:

All

  1. Files & Directories | Path | Starts With | C:\path\to\folder
  2. Files & Directories | Name | Contains | File1.exe
  3. Files & Directories | Name | Contains | File2.exe

 

1

Comments

3 comments
Date Votes
  • John,

    The reason that your collection isn't working is because you're asking PDQ "Give me all the computers that have a single file whose path starts with C:\path\to\folder and whose filename contains both file1.exe and file2.exe". This is failing because no single file meets all 3 of those conditions.

    You need to break that up into several group filters, like this:

    Many of the filters that work with tables other than "Computers" can be confusing because they need to be filtered in this way to work properly. You get used to the logic over time, though.

    2
  • Ok great, thanks I'll try it. 

    Any chance maybe they could change this to an AND - OR logic approach? Is that's what's used on SCCM? 

    1
  • That's basically how it already works, but they're just using different terminology for it. I agree that it's not always intuitive. AND/OR would be much more logical for those of us with a background in programming.

    You could submit that as a feature request to PDQ I suppose, but it's been like this for a while so I wouldn't hold your breath about it being changed. It would probably confuse their existing customer base who are used to the old way and to be frank I don't see it bringing in enough new customers to justify that.

    2