WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ADSI
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

dsfindpath Syntax Error

 Keywords:  

Question:

I'm trying to build a list of distirbution lists...
LDAPRootPath = "LDAP://MyDomain.com"
DistLists = dsfindpath (LDAPRootPath, (& ("objectClass=Group") ("OU=Distribution Lists"))
I'm getting a syntax error on the second line. Can anyone tell me what I'm doing wrong?

Answer:

Malformed search. You will need quotes around the search-filter, and you seem to be missing a close parenthese.
DistLists = dsfindpath (LDAPRootPath, "(& (objectClass=Group) (OU=Distribution Lists))")

Article ID:   W15382
File Created: 2003:05:13:11:27:24
Last Updated: 2003:05:13:11:27:24