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--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
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--