Forum Discussion
Petri-X
Feb 26, 2020Bronze Contributor
Get-CsCallQueue broken?
Hi, If in your tenant you have more than 100 Call Queues done, are you able to get out more than 100 of them when querying those by PowerShell? No matter what I do, I always get only 100: PS C...
Mark Harrison
Sep 27, 2021Copper Contributor
I agree that its off that all other commands return unlimited results, but I found a way round this limitation.
$i=1
do
{
Get-CsCallQueue -First 1 -Skip ($i-1)
$i++
}
while ($i -le 900)
Just change the upper limit to match what you think you have in your tenant, and it will bring back each one. We have around 770 call queues, so this was the only way I could get them all back.
$i=1
do
{
Get-CsCallQueue -First 1 -Skip ($i-1)
$i++
}
while ($i -le 900)
Just change the upper limit to match what you think you have in your tenant, and it will bring back each one. We have around 770 call queues, so this was the only way I could get them all back.