I did not like to just keep posting questions without searching, I tried too many ways and I am still feel that I am messing something not too big.


What I found here that all our users internet account are in the following path.
LDAP://st20en1.dhw.zain.com.st/cn=proxy01, ou=groups, dc=zain, dc=com, dc=st, o=internet

And this what I placed in your function under ($AdoCommand.CommandText) but it did not work.

I did the same thing in shown code $user = GetObject("LDAP://st20en1.dhw.zain.com.st/cn=proxy01, ou=groups, dc=zain, dc=com, dc=st, o=internet").

Based on what I read about this issue, I think I have to have the uniquemember and/or uid.

Please help