Allow admins to monitor who has logged out of Call Queues
Managers need to be able to see who has logged themselves out of Call Queues. Will this ever be available?

2 comments
-
Gary Livingstone commented
Anyone worked out if you can log an agent out in powershell, I seem to be drawing a blank on this one.
-
Anonymous commented
You can do this with PowerShell:
$filepath = "$env:tmp\CallQueues.csv"
if (Test-Path $filepath) {
Remove-Item $filepath
}
$CallQueue = Get-CsCallQueue | where-object {$_.Name -like "FILTER FOR QUEUES*"}Foreach($CQ in $CallQueue)
{$Agents = $CQ.Agents
Foreach($a in $CQ.Agents)
{
$CSOU= Get-CsOnlineUser $a.ObjectID
$Agent = new-object -TypeName PSObject
$Agent | Add-Member -type NoteProperty -Name 'CallQueue' -Value $CQ.Name
$Agent | Add-Member -type NoteProperty -Name 'DisplayName' -Value $CSOU.DisplayName
$Agent | Add-Member -type NoteProperty -Name 'LineURI' -Value $CSOU.LineURI
$Agent | Add-Member -type NoteProperty -Name 'OptIn' -Value $a.OptIn
$Agent | export-csv $filepath -NoTypeInformation -append}
}