apronk
it must be my LDAP path
okay scenario I am on srv-dc1 (actaul name) it is a DC. I am logged in as Domain ADmin. AD hierarchy for one branch is this
funnycu.priv
funnycu (ou)
ForthAve (ou)
Computers (ou)
-------------------------------
Let us do one line at a time and I bet the other lines the same.
--------------------------------------------------------------

 Code:
 Dim $Branch1, $Branch2, $Branch3, $Branch4
;fnLDAPQuery(WHAT, Optional FROM, Optional FILTER, Optional ORDER BY, Optional SCOPE, Optional USER, Optional PASSWORD)
$Branch1 = fnLDAPQuery('Name','LDAP://ou=Computers,ou=ForthAve,dc=srv-dc1,dc=local','(&(objectClass=Computer)(Name=*))')


do I have the names exact for what they are like the filter "Computer" or ou name Computers?
Name I leave alone right as name.
where the computers are stored for ForthAve are in the last OU called Computers each branch office has a name ie ForthAve and then another OU called Computers where their respective computers are store the names of each PC in that branch office. that is it..so can you write the correct synatax of one branch LDAP and so I can see you have the scenario I just gave you to better help you see what I have and I have given you actaul names..we are almost there. it doenst come up i know my LDAP path is wrong.
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin