M m|sf|t Mar 9, 2005 #1 Is there a way in Windows 2000 Server to print out a list of members in a security or distribution group ?
Is there a way in Windows 2000 Server to print out a list of members in a security or distribution group ?
G Guest Mar 9, 2005 #2 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
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