Whoops, forgot I stopped looking for <folder> and started looking for Name so I 
could speed it up with a full path.
Select * from Win32_Directory Where Name = 'C:\\Program Files\\Folder' works 
immediately, but
Select * from Win32_Directory Where Name <> 'C:\\Program Files\\Folder' takes 
forever? Any reason why that's hard to search for, I am guessing because of the 
way I wrote it, its comparing everything to the statement?
jlc

From: Joseph L. Casale [mailto:[email protected]]
Sent: Tuesday, February 10, 2009 10:49 AM
To: NT System Admin Issues
Subject: WMI Filter Help

I created two filters:
Select * from Win32_Directory Where Filename = 'C:\\Program Files\\Folder'
Select * from Win32_Directory Where Filename <> 'C:\\Program Files\\Folder'

and set two gpo's to apply based on this. For some reason, all the machines 
evaluate positive and falsely for both and switch constantly for one 
combination to another?
What's up with that? Anyone got any ideas? I was going to search Win32_Product 
for the msi, but it apparently didn't install via msi so looking for this 
folder seems to be the best option...

Thanks!
jlc






~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to