?
Solved

Powershell AD Groupmember search

Posted on 2011-02-15
2
Medium Priority
?
2,880 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 27

Accepted Solution

by:
KenMcF earned 500 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

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Question has a verified solution.

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

Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

755 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