Print out members in a security group ?

G

Guest

Guest
Archived from groups: microsoft.public.win2000.group_policy (More info?)

Is there a way in Windows 2000 Server to print out a list of members in a
security or distribution group ?
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.group_policy (More info?)

Hi
Look at Script Center - I found there that example:
http://www.microsoft.com/technet/scriptcenter/scripts/ad/groups/adgpvb13.mspx

On Error Resume Next
Set objGroup = GetObject _
("LDAP://cn=Scientists,ou=R&D,dc=NA,dc=fabrikam,dc=com")
objGroup.GetInfo
arrMemberOf = objGroup.GetEx("member")
WScript.Echo "Members:"
For Each strMember in arrMemberOf
WScript.echo strMember
Next



"m|sf|t" wrote:

> Is there a way in Windows 2000 Server to print out a list of members in a
> security or distribution group ?