Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all articles
Browse latest Browse all 629

Deploy software to all but one OU

$
0
0

I'm trying to distribute a software package to all computers except those in a certain OU.  I've tried to create a query that will accomplish this but am having some problems.  I've tried to query all computers that are within the root computer OU and exclude the other computers by using an "is not like" statement.  The "is not like" statement doesn't seem to be working as expected.  Here is what I'm currently trying:

 

 

Code Snippet

select *  from  SMS_R_System where SMS_R_System.SystemOUName like "DOMAIN.COM/DEPARTMENTS AND GROUPS" and SMS_R_System.SystemOUName not like "DOMAIN.COM/DEPARTMENTS AND GROUPS/OU TO NOT DEPLOY TO"

 

 

 

I've also tried a "and not" between the two statements and used "is like" instead.  Same results.  Anybody have some suggestions on how to accomplish this?


Viewing all articles
Browse latest Browse all 629

Trending Articles