Jul 08 2022 01:51 AM - edited Jul 08 2022 01:51 AM
Hello,
I wrote a small script but for some reason “ResultSize” doesn’t work.
“WARNING: There are more results available than currently displayed. If you want to display all results, increase the value for the ResultSize parameter. “ but this is already on “unlimited” I already tried with digits but won't works.
#Connect-ExchangeOnline
$DLList = Import-CSV "C:\temp\Liste_DL_UTF8.csv"
#$DLList.Liste
foreach($Line in $DLList)
{
#Write-Host $Line.Liste
Get-DynamicDistributionGroupMember -ResultSize unlimited -Identity $Line.Liste | Select-Object DisplayName | Export-Csv -Path C:\Temp\DL_Listen_Members\$($Line.Liste)_Members.csv
#Write-Host (Get-DynamicDistributionGroupMember -ResultSize unlimited -Identity $Line.Liste).DisplayName
}
Thanks for every help!
Jan 09 2023 12:58 PM
SolutionHello @SpeedHeed,
As you already mentioned, you are using -ResultSize unlimited to get all possible results. The warning that you are seeing is there by default, FYI type of thing.
However, there are couple of more things to take into the consideration:
Reference: Get-DynamicDistributionGroupMember
Hope that helps.