dssquery /? will give you some hint
 
Try "dc=mychilddomain,dc=myparentdomain,dc=com" instead of "forestroot"
 
 
Sincerely,

D�j� Ak�m�l�f�, MCSE MCSA MCP+I
Microsoft MVP - Directory Services
www.readymaids.com - we know IT
www.akomolafe.com
Do you now realize that Today is the Tomorrow you were worried about
Yesterday?  -anon

________________________________

From: [EMAIL PROTECTED] on behalf of Harding, Devon
Sent: Fri 9/17/2004 11:47 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] AD Group Export GUI?



How would I specify a particular child domain to search?

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bernard, Aric
Sent: Friday, September 17, 2004 1:33 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] AD Group Export GUI?

 

The query I specified below will export all groups and there members
regardless of name.  If you want to get more specific with the query, you
definitely can.  The example below will dump the members for only the "Domain
Admins" group:

 

dsquery * forestroot -scope subtree -filter
"&(objectCategory=group)(name=Domain Admins)" -attr name member -r -limit
100000

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Friday, September 17, 2004 7:21 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] AD Group Export GUI?

 

How do I run this (dsquery) against a group with a space in its name?

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bernard, Aric
Sent: Thursday, September 16, 2004 6:14 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] AD Group Export GUI?

 

FYI - using the RDN (group) should also work for objectCategory. ;-}

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bernard, Aric
Sent: Thursday, September 16, 2004 3:03 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] AD Group Export GUI?

 

>From a command line (or batch file) you could use the following command:

 

dsquery * forestroot -scope subtree -filter (objectClass=group) -attr name
member -r -limit 100000 > MyGroupMembers.txt

 

This will create a tab delimited file with the first field holding the name
of the group and the second field holding the DN of each member separated by
a semicolon.

 

The only requirement for this command is that you must have the dsquery tool
on the system it is run from.  The tool comes native with Windows 2003 and
can be installed on other machines by simply copying the executable or by
installing the adminpak (or support tools - cannot remember for sure) from
the W2K3 CD.

 

Aric

 

P.S. for those LDAP query purists, you should probably use the objectCategory
class instead as it is indexed, however the class syntax must instead be a DN
such as CN=Group,CN=Schema,CN=Configuration,DC=MyDomain,DC=com.  If your
forest is relatively small and you have relatively few groups the objectClass
will work fine.

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Thursday, September 16, 2004 2:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] AD Group Export GUI?

 

I get this...

 

 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mulnick, Al
Sent: Thursday, September 16, 2004 5:19 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [ActiveDir] AD Group Export GUI?

 

I like this myself. ;)

http://www.houseofqueues.com//CodeSamples/FindMembers.html
<http://www.houseofqueues.com/CodeSamples/FindMembers.html> 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Thursday, September 16, 2004 4:48 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] AD Group Export GUI?

Is there a GUI or easy way to export AD group members to a text or csv list?

 

Devon Harding

Windows Systems Engineer

Southern Wine & Spirits - GSD

954-602-2469

 

________________________________

__________________________________
This message and any attachments are solely for the intended recipient and
may contain confidential or privileged information. If you are not the
intended recipient, any disclosure, copying, use or distribution of the
information included in the message and any attachments is prohibited. If you
have received this communication in error, please notify us by reply e-mail
and immediately and permanently delete this message and any attachments.
Thank You. 

________________________________

__________________________________
This message and any attachments are solely for the intended recipient and
may contain confidential or privileged information. If you are not the
intended recipient, any disclosure, copying, use or distribution of the
information included in the message and any attachments is prohibited. If you
have received this communication in error, please notify us by reply e-mail
and immediately and permanently delete this message and any attachments.
Thank You. 

________________________________

__________________________________
This message and any attachments are solely for the intended recipient and
may contain confidential or privileged information. If you are not the
intended recipient, any disclosure, copying, use or distribution of the
information included in the message and any attachments is prohibited. If you
have received this communication in error, please notify us by reply e-mail
and immediately and permanently delete this message and any attachments.
Thank You. 

________________________________

__________________________________
This message and any attachments are solely for the intended recipient and
may contain confidential or privileged information. If you are not the
intended recipient, any disclosure, copying, use or distribution of the
information included in the message and any attachments is prohibited. If you
have received this communication in error, please notify us by reply e-mail
and immediately and permanently delete this message and any attachments.
Thank You. 

List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to