Always getting 1500 member of distribution list using PowerShell
问题 I would like to get all members (mail address) of a certain distribution list. Currently I just recieve the first 1500 members. My Script looks like that: $group = [ADSI]"LDAP://CN=distListOne,OU=Groups,DC=XYZ,DC=XYZ" $group.member.count ##Always 1500 foreach($member in $group.member) { $filter = "LDAP://"+$member $user = [ADSI]$filter $user.properties.mail | out-file "C:\distrUser.txt" -append } I know that there are more than 1500 users in the distribution list. I need anyhow to extend the