Link to home
Start Free TrialLog in
Avatar of dflynn21
dflynn21Flag for United States of America

asked on

How do you write an "OR" instead of a "AND" in a CSVDE script..

I have written the following script:

CSVDE -v -f C:\SCRIPT\OUTPUT\Userlist.csv -s APIOAPP1 -d "dc=DOMAIN,dc=COM" -p subtree -r "(&(objectCategory=person)(givenName=*)(mail=*)(userAccountControl=66048))" -l "company,sn,givenName,DisplayName,mail,mailNickname"

The current script works great for returning information that (userAccountControl=66049).  What I would like to do is create a "Or" statement in which user(AccountControl=66048 or 512).  What is the syntax in order to return the data?
Avatar of billmercer
billmercer

I don't think you can do this with a single command. You could make a batch file that runs the two consecutive commands and then concatenates the results.  
ASKER CERTIFIED SOLUTION
Avatar of Beldoran
Beldoran

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial