Hi,
We try to export the list of users through a script (get-csonlineusers) that throws the following error.

The script is intended to export 3 lakh users. I copied a bit from the script where we got an error in the script line 25. It would be great if someone have a solution for this issue.
Get-CsOnlineUser -Filter {(AssignedPlan -eq 'Teams') -and (accountenabled -eq $True) } -ResultSize 300000 | Where-Object {$_.SoftDeletionTimeStamp -eq $null} | Select-Object `
UserPrincipalName, SipAddress, OnPremLineUri, LineUri, City
Thanks in Advance.
Regards,
MS
