Digitalcandy
IS-IT--Management
Is there a way to emulate Group members all at once without supplying the full path to the OU the group is in? Right now I'm using the sample code from Microsoft, but it requires the exact location in AD, and it also lists each user one at a time.
Sample code I'm using:
Set objGroup = GetObject _
("LDAP://cn=Managers,ou=management,dc=fabrikam,dc=com")
For each objMember in objGroup.Members
Wscript.Echo objMember.Name
Next
Sample code I'm using:
Set objGroup = GetObject _
("LDAP://cn=Managers,ou=management,dc=fabrikam,dc=com")
For each objMember in objGroup.Members
Wscript.Echo objMember.Name
Next