Solved

Powershell AD Groupmember search

Posted on 2011-02-15
2
2,718 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now