Results 1 to 3 of 3

Thread: Unable to run dsquery / dsget for large number of group members

  1. #1
    Join Date
    Mar 2005
    Posts
    90

    Unable to run dsquery / dsget for large number of group members

    I want to run dsquery/dsget batch commands to get the members of some global security groups and put the output into a text file. I have already tested a few groups and found that the security groups with small group membership work fine, but groups that have very large list of members, it will not return any records in the text file. Can anyone tell me if there is a limit of members that will not return a value from this command and also if there is a way of using DSQUERY and DSGET to produce an output for security groups with a large list of members if there is a limit? Any ideas?

  2. #2
    Join Date
    Jun 2006
    Posts
    623

    Re: Unable to run dsquery / dsget for large number of group members

    Is the below having any bearing on your issues?

    -limit <NumObjects>
    Specifies the number of objects matching the given criteria to be returned, where

    <NumObjects>
    is the number of objects to be returned. If the value of <NumObjects> is 0, all matching objects are returned. If this parameter is not specified, by default the first 100 results are displayed.

  3. #3
    Join Date
    Feb 2010
    Posts
    3

    Re: Unable to run dsquery / dsget for large number of group members

    Getting the members of groups with more than 1000 members (W2K) or 1500 (W2K3 or later) often requires a bit of extra work. You also need to consider the type of group as often visibility is constrained in a multi-domain forest.

    Some discussion and sample .Net code can be found. That page contains links to some Microsoft KBs as well.

    HTH

Similar Threads

  1. using Dsquery and DSGET
    By etechelp in forum Active Directory
    Replies: 1
    Last Post: 20-07-2011, 11:32 PM
  2. Using DSQUERY to get the members of a Group in AD
    By sevaanan in forum Active Directory
    Replies: 5
    Last Post: 11-11-2009, 01:53 PM
  3. dsquery and dsget
    By aconti in forum Active Directory
    Replies: 1
    Last Post: 01-11-2009, 04:09 PM
  4. Dsget group members SID
    By Jeremy Smith in forum Active Directory
    Replies: 3
    Last Post: 22-11-2008, 06:32 AM
  5. dsquery to list members of group
    By joey in forum Windows Server Help
    Replies: 1
    Last Post: 05-11-2008, 08:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,527,901.14580 seconds with 18 queries