RE: Get E-mail address from VbScript

From: Bob Qin [MSFT] (bobqin_at_online.microsoft.com)
Date: 04/06/04


Date: Tue, 06 Apr 2004 04:28:44 GMT

Hi Guillaume,

Please use the following script.

Set objGroup = GetObject
("LDAP://CN=MIS,OU=TI,DC=qc,DC=test,DC=com")

For Each objMember in objGroup.Members
Wscript.Echo objMember.name & VBTab & "Email Address: "
&objMember.mail
Next

Best regards,
Bob Qin
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages