Viewing Group Members


R

Ray Lewis

Is there a way that I can view the members of my active directory groups by
using a tab delimited text file or something? Basically, the previous Admin
has created some 40 groups and rather than open each group and view the
members of the group and write them down, I'd like to be able to create some
kind of report that will show me who belongs to all the groups.
 
Ad

Advertisements

J

Jerold Schulman

Is there a way that I can view the members of my active directory groups by
using a tab delimited text file or something? Basically, the previous Admin
has created some 40 groups and rather than open each group and view the
members of the group and write them down, I'd like to be able to create some
kind of report that will show me who belongs to all the groups.

See tip 9244 » How can I generate a CSV file of all domain group membership?
AND LINKS in the 'Tips & Tricks' at http://www.jsifaq.com
 
R

Ray Lewis

Thanks, I'll give it a shot.

--
Wack
----
This message will self destruct.
 
R

Ray Lewis

I tried your suggestion, but I received this error.

'UserPgid' is not recognized as an internal or external command, operable
program or batch file.

I'm not familiar with running batch files, so I don't know if I did it right
or not.
I copied the code and pasted it to a .txt file.
I renamed the GroupMembers.txt file to GroupMembers.bat.
I saved the file on the AD servers C:\.
At the command C:\, I ran groupmembers c:\documents and
settings\user\desktop\GroupMembers.csv.

Am I doing everything right?


--
Wack
----
This message will self destruct.
 
J

Jerold Schulman

I tried your suggestion, but I received this error.

'UserPgid' is not recognized as an internal or external command, operable
program or batch file.

I'm not familiar with running batch files, so I don't know if I did it right
or not.
I copied the code and pasted it to a .txt file.
I renamed the GroupMembers.txt file to GroupMembers.bat.
I saved the file on the AD servers C:\.
At the command C:\, I ran groupmembers c:\documents and
settings\user\desktop\GroupMembers.csv.

Am I doing everything right?
You need to locate all the sub-programs (.bat files) in a folder that is in your path.
 
Ad

Advertisements

J

Jorge_de_Almeida_Pinto

Is there a way that I can view the members of my active
directory groups by
using a tab delimited text file or something? Basically, the
previous Admin
has created some 40 groups and rather than open each group and
view the
members of the group and write them down, I'd like to be able
to create some
kind of report that will show me who belongs to all the
groups.
use ADFIND http://www.joeware.net/win/free/tools/adfind.htm

adfind -default -f "(objectClass=group)" member

replace -default with -b "OU=???,OU=???,DC=???,DC=???" if you want to
target a certain OU
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top