Dealing with large group memberships (range retrieval) using PowerShell (v1)
Posted on 2010-01-08
I'm working on a project where I need to have a script return the distinguished names of all members of a distribution group. Easy enough, except when the distribution group has more then 1,500 members. I know I can do this with non-native cmdlets or the Exchange cmdlets, but I really need to do this using LDAP\ADSI. The problem appears to be that I need to use range retrieval, however I'm having a hard time finding working code samples that do this. Does anyone have any code samples that can be used to spit out group member DN's for distribution groups that are larger than 1,500 members?