Solved

Powershell AD Groupmember search

Posted on 2011-02-15
2
2,798 Views
Last Modified: 2012-05-11
HI,

I am trying to use the powershell command get-adgroupmember to list the members of a Security group on a windows 2008 R2 machine. It was working fine until I added another security group to it, which would bring the members up to about 6000.

The error I recieve is that the command exceeded the limit.  Any ideas?
0
Comment
Question by:sqg9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 34903427
0
 
LVL 27

Accepted Solution

by:
KenMcF earned 125 total points
ID: 34903450
I have had problems with this in the past and have not found a fix using the MS AD cmdlets. For large groups I use either the Quest tools or ADSI.

get-qadgroupmember GROUPNAME -sizelimit 0 -indirect | Select name, samaccountname

or just a count

(get-qadgroupmember GROUPNAME -sizelimit 0 -indirect).count
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question