You will need to use a sub-select query to do the not in stuff.
Here is an example. https://www.enhansoft.com/blog/subselect-wql-query-to-find-pcs-that-do-not-have-either-x86-or-x64-versions-of-software-installed
Newsletter
Want to keep up to date with all our latest news and information?