Nested AD group member more than 5000 users

GoodResource 391 Reputation points
2022-08-03T14:08:53.557+00:00

Hi,

I am trying to export a group with nested groups having total members more than 5000 users. I understand the get-adgroupmember more than users and alternate is to use get-adgroup instead of get-adgroupmember. However for get-adgroupmember i can user "-recursive" to get nested group members. How can i use the same for get-adgroup to get all members of parent and nested groups.

I am writing a script which will then compare with another security group and will output if any member matches on both the list.

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,642 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-08-03T18:18:35.133+00:00

    Some ideas here.
    https://stackoverflow.com/questions/46078880/get-adgroupmember-the-size-limit-for-this-request-was-exceeded

    --please don't forget to upvote and Accept as answer if the reply is helpful--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.