How do I gather group information from Domain

G

Guest

Hello everyone.

I would like to know does anyone know or remember how to export the names of
the groups in a domain to a text file or Is there a third party tool I could
use. As a bonus does anyone know how to export the members of groups as well.

OS. Windows 2000 Advance Server
Thanks

Mike
 
J

Jerold Schulman

Hello everyone.

I would like to know does anyone know or remember how to export the names of
the groups in a domain to a text file or Is there a third party tool I could
use. As a bonus does anyone know how to export the members of groups as well.

OS. Windows 2000 Advance Server
Thanks

Mike

From any Windows XP domain member, you can open a CMD prompt and type:

1. To list the groups by distinguishedName:

dsquery group -LIMIT 0

2. To list the group by SAMID:

dsquery group -o samid -limit 0

3. export the members of "CN=Domain Admins,CN=Users,DC=JSIINC,DC=COM"

dsget group "CN=Domain Admins,CN=Users,DC=JSIINC,DC=COM" -members

4. To export the members of "Domain Admins"

dsquery group -name "Domain Admins"|dsget group -members

See tip 6820 in the 'Tips & Tricks' at http://www.jsifaq.com
See tip 7714 and 7992
 

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