Apronk

like this? wasnt sure what whent in Computer or name if it was just or did the ou Computers go there? and I put the AD dc in place of name is this allw rong? I am confused on what goes in what place
remeber the ad hierarchy goes like ths
funnycu.priv
funncu
forthave
Computers
(repeat branch names and ou computers)


 Code:
 

Dim $Branch1, $Branch2, $Branch3, $Branch4
;fnLDAPQuery(WHAT, Optional FROM, Optional FILTER, Optional ORDER BY, Optional SCOPE, Optional USER, Optional PASSWORD)
$Branch1 = fnLDAPQuery('srv-dc1','LDAP://ou=Computers,ou=forthAve,dc=microsoft,dc=funnycu,dc=priv','(&(objectClass=Computers)(srv-dc1=*))')
$Branch2 = fnLDAPQuery('srv-dc1','LDAP://ou=Computers,ou=EighthSt,dc=microsoft,dc=funnycu,dc=priv','(&(objectClass=Computers)(srv-dc1=*))')
$Branch3 = fnLDAPQuery('srv-dc1','LDAP://ou=Computers,ou=PostRd,dc=microsoft,dc=funnycu,dc=priv','(&(objectClass=Computers)(srv-dc1=*))')
$Branch4 = fnLDAPQuery('srv-dc1','LDAP://ou=Computers,ou=PostRd,dc=microsoft,dc=funnycu,dc=priv','(&(objectClass=Computers)(srv-dc1=*))')

For Each $x in $Branch1
;Display array list as test
? "1:"+$x
Next

For Each $x in $Branch2
;Display array list as test
? "2:"+$x
Next

For Each $x in $Branch3
;Display array list as test
? "3:"+$x
Next

For Each $x in $Branch4
;Display array list as test
? "4:"+$x
Nex


_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin