Kaffeeundcode

Export TeamsCallQueueInventory

Update: 14.04.2026

Skript Beschreibung

**Zusammenfassung**: Teams Call Queue Inventory

Exportiert Teams Call Queue Inventory aus der Teams-Telefonie.

Skript Infos

Autor Mattia Cirillo
Version 1.0
Sprache PowerShell
192_Export-TeamsCallQueueInventory.ps1
<#
.SYNOPSIS
    Teams Call Queue Inventory

.DESCRIPTION
    Exportiert Teams Call Queue Inventory aus der Teams-Telefonie.

.NOTES
    File Name : 192_Export-TeamsCallQueueInventory.ps1
    Author    : Kaffeeundcode
    Version   : 1.0
#>

param(
    [string]$OutputPath = "$PSScriptRoot/192_Export-TeamsCallQueueInventory.json",
    [int]$Top = 25,
    [switch]$SkipConnect
)

. "$PSScriptRoot/000_TeamsTelephonyHelper.ps1"

Ensure-TtCommand -Commands @("Get-CsCallQueue")
Initialize-TtSession -SkipConnect:$SkipConnect


$Items = @(Get-CsCallQueue)
$Result = $Items

if ($OutputPath) {
    Export-TtData -Data $Result -OutputPath $OutputPath
    Write-Host "Export abgeschlossen: $OutputPath" -ForegroundColor Green
} else {
    Write-TtPreview -Data $Result -Top $Top
}