Powershell ResultSize not working

New Contributor

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!

 

0 Replies