dflynn21
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=* )(userAcco untControl =66048))" -l "company,sn,givenName,Disp layName,ma il,mailNic kname"
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?
CSVDE -v -f C:\SCRIPT\OUTPUT\Userlist.
The current script works great for returning information that (userAccountControl=66049)
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.