Board index » Visual Studio » Dumbass newbie question
|
ZachS
|
Dumbass newbie question
Visual Studio167
Hi There, I found some VB the other day within the Script Centre repository to bring me the members of distribution lists. It worked well the other day. When I'm querying another domain with different naming conventions however, I'm having problems. The main problems (I think) are the use of spaces in my OU name, and that each DL begins with a '#' character. I found an article within Google groups asying I should put a '\' before my '#' to cure this, but no luck. If someone could have a look at the below and advise me of the actual syntax I should be using, I'd be very grateful. *************************************************** On Error Resume Next Set objGroup = GetObject _ ("LDAP://cn=#inquiries@xxxxx.com,ou=Distribution Lists,ou=us,dc=na,dc=ad,dc=xxxxx,dc=com") objGroup.GetInfo arrMemberOf = objGroup.GetEx("member") WScript.Echo "Members:" For Each strMember in arrMemberOf WScript.echo strMember Next *************************************************** Many Thanks in advance, Orb. - |
