How do I gather group information from Domain

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top