Raterus
2005-12-21 15:24:08 UTC
I'm trying to create an active directory query to search under my companies "Users" OU. Under this OU are departmental OU's, and under those OU's "may" be an OU named "Service Accounts".
I'm trying to create a query to hit ever user under the "Users" OU, but exclude users/OU's that are under "Service Accounts"
This seems like it'd work to me, but I'm getting a bad query error,
(&(objectCategory=person)(objectClass=user)(!ou=Service Accounts))
Can anyone help me on exactly what I need to change with this query to exclude any and all "Service Accounts" OU's
Thanks,
--Michael
I'm trying to create a query to hit ever user under the "Users" OU, but exclude users/OU's that are under "Service Accounts"
This seems like it'd work to me, but I'm getting a bad query error,
(&(objectCategory=person)(objectClass=user)(!ou=Service Accounts))
Can anyone help me on exactly what I need to change with this query to exclude any and all "Service Accounts" OU's
Thanks,
--Michael