General discussion


Members of a Active Directory Group

By Jayanth ·
We have a Windows 2003 Domain Controller in our Oganization, with 2 domains (US & IN) at 2 sites (USA & India).

We have several "Universal Groups" created at the domain US which have members from both US & IN domains.

From the command prompt when I issue "net group grp1 /domain" at US domain, it only shows those users who are members of "grp1" at domain US. If I need to know all the users at domain US & IN who are members of "grp1", the only option I have (or rather that I know of) is to use the "Active Directory Users & Computers" GUI from the AdminPack.

Is there a simpler way to achieve the same result from a command prompt or from scripting languages like Perl?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by lowlands In reply to Members of a Active Direc ...

I can't try this because I only have one domain, but a few things to try:

use showmbrs.exe
use a vbscript
On Error Resume Next

Set objGroup = GetObject _

arrMemberOf = objGroup.GetEx("member")

WScript.Echo "Members:"
For Each strMember in arrMemberOf
WScript.echo strMember

Related Discussions

Related Forums