Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



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

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 13-05-2006
Steve Jackson
 
Posts: n/a
Unable to run dsquery / dsget for large number of group members

Hi,

I am trying to run dsquery / dsget batch commands to get the members of a
few global security groups and put the output into a text file. I have
tested a few groups and found that ht e security groups with small group
membership work ok, however groups that have a very large list of members it
not return any records in the text file.

The command I have run successfully for groups with a small list of members
is:
DSQUERY group "groupDN" | DSGET group -members >>textfile.txt

Is there a limit of members that will not return a value from this command?
Is there 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 help will be greatly appreciated.

Thanks
Steve


Reply With Quote
  #2  
Old 14-05-2006
Al Mulnick
 
Posts: n/a
Re: Unable to run dsquery / dsget for large number of group members

does this have any bearing on your problem?

-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.

-ajm



"Steve Jackson" <jacko2401@blueyonder.co.uk> wrote in message
news:_d49g.272551$8Q3.39799@fe1.news.blueyonder.co.uk...
> Hi,
>
> I am trying to run dsquery / dsget batch commands to get the members of a
> few global security groups and put the output into a text file. I have
> tested a few groups and found that ht e security groups with small group
> membership work ok, however groups that have a very large list of members
> it not return any records in the text file.
>
> The command I have run successfully for groups with a small list of
> members is:
> DSQUERY group "groupDN" | DSGET group -members >>textfile.txt
>
> Is there a limit of members that will not return a value from this
> command? Is there 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 help will be greatly appreciated.
>
> Thanks
> Steve
>



Reply With Quote
  #3  
Old 28-02-2010
Member
 
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
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Unable to run dsquery / dsget for large number of group members"
Thread Thread Starter Forum Replies Last Post
using Dsquery and DSGET etechelp Active Directory 1 21-07-2011 12:32 AM
Using DSQUERY to get the members of a Group in AD Bob Randall Active Directory 9 11-11-2009 10:39 PM
dsquery and dsget aconti Active Directory 1 01-11-2009 04:09 PM
Dsget group members SID Jeremy Smith Active Directory 3 22-11-2008 06:32 AM
dsquery to list members of group joey Windows Server Help 1 05-11-2008 08:43 AM


All times are GMT +5.5. The time now is 04:23 PM.