Forum Discussion

JFM_12's avatar
JFM_12
Iron Contributor
Aug 13, 2025

Get all Auto Attendants or Call Queues

Hello

Hope you are all doing great

The commands:

Get-CsAutoAttendant or Get-CsCallQueue limits the output since some time to 100 rows.

Earlier there was a setting "-limit all". This is not available anymore.

Is there a possibility for a workaround

Regards
JFM_12

3 Replies

  • @JFM_12 - Thanks for bringing this issue to our attention.

    Yes, there is a workaround for the 100-row limit in Get-CsAutoAttendant and Get-CsCallQueue since the -Limit All parameter is no longer available.

    You can use the -First and -Skip parameters to page through results and retrieve all items:

    # Get the first 100
    $allAAs = Get-CsAutoAttendant -First 100

    # Continue fetching in batches of 100
    $skip = 100
    do {
        $batch = Get-CsAutoAttendant -First 100 -Skip $skip
        if ($batch.Count -gt 0) {
            $allAAs += $batch
            $skip += 100
        }
    } while ($batch.Count -gt 0)

    # $allAAs now contains all auto attendants

    Repeat the same logic for Get-CsCallQueue.

    Thanks, 

    Nivedipa

    --------------------------------------------------------------------------------------------------------------------- 

    If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

Resources