Michael-Dallas
2006-05-26 22:08:02 UTC
I'm banging away at a csvde to export all user accounts but I need to exclude
certain OU's. I'm having a hard time with it and wanted to pass it out here
for someone that can correct me. I'm working with -r (filter) and I'm
currently working it as:
"(&(objectCategory=user)(!cn=*,ou=serviceaccounts,dc=company,dc=com))"
or
"(&(objectCategory=user)(!ou=serviceaccounts,dc=company,dc=com))"
and other variants.
The ! is to exclude or NOT from what I've read and seen in the examples as
used for attributes of accounts to filter on. I'm going to get over and try
joeware but wanted to check on the csvde syntax because I have a feeling that
I'm going to be asked for other things such as multiple OU's to exclude and
certain attributes and then use them for import into our lab for testing
either migrations or policies.
Thanks in advance.
certain OU's. I'm having a hard time with it and wanted to pass it out here
for someone that can correct me. I'm working with -r (filter) and I'm
currently working it as:
"(&(objectCategory=user)(!cn=*,ou=serviceaccounts,dc=company,dc=com))"
or
"(&(objectCategory=user)(!ou=serviceaccounts,dc=company,dc=com))"
and other variants.
The ! is to exclude or NOT from what I've read and seen in the examples as
used for attributes of accounts to filter on. I'm going to get over and try
joeware but wanted to check on the csvde syntax because I have a feeling that
I'm going to be asked for other things such as multiple OU's to exclude and
certain attributes and then use them for import into our lab for testing
either migrations or policies.
Thanks in advance.