I am working with a csvde to export all user accounts but I want to exclude some OUs. There is a problem with it and wanted to pass it out here for anyone that can correct me. I am working with -r (filter) and I am right now working it as:
"(&(objectCategory=user)(!ou=serviceaccounts,dc=company,dc=com))" and other variants.
The exclamation is to exclude or not from what I have read and seen in the examples as used for attributes of accounts to filter on. I am trying to get over and try joeware but wanted to check on the csvde syntax since I have a feeling that I am going to be asked for other things such as multiple OUs to exclude to certain attributes and then use them for import.