From: francois on
Hello,

Dan wrote :

> Hey all,
> I have used arrMemberOf = objGroup.GetEx("member") to obtain the members
> of a group but they come in as the "cn=...." and I need to just obtain the
> user name. How can I translate to that?

I'm not sure, but I propose this:

'-----------------------------
For Each strMember in arrMemberOf
Set objUser = GetObject("LDAP://" & strMember)
WScript.echo objUser.sAMAccountName
Next
'-----------------------------



--
François Lafont
 | 
Pages: 1
Prev: SQL Query in VBScript
Next: How to speed this up?