Kaffeeundcode

Get TeamsAutoAttendantsByVoiceResponse

Update: 14.04.2026

Skript Beschreibung

**Zusammenfassung**: Teams Auto Attendants By Voice Response

Ruft Teams Auto Attendants By Voice Response aus der Teams-Telefonie ab.

Skript Infos

Autor Mattia Cirillo
Version 1.0
Sprache PowerShell
217_Get-TeamsAutoAttendantsByVoiceResponse.ps1
<#
.SYNOPSIS
    Teams Auto Attendants By Voice Response

.DESCRIPTION
    Ruft Teams Auto Attendants By Voice Response aus der Teams-Telefonie ab.

.NOTES
    File Name : 217_Get-TeamsAutoAttendantsByVoiceResponse.ps1
    Author    : Kaffeeundcode
    Version   : 1.0
#>

param(
    [string]$OutputPath = "$PSScriptRoot/217_Get-TeamsAutoAttendantsByVoiceResponse.csv",
    [int]$Top = 25,
    [switch]$SkipConnect
)

. "$PSScriptRoot/000_TeamsTelephonyHelper.ps1"

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


$Items = @(Get-CsAutoAttendant)
$Result = Group-TtByPath -Items $Items -Path "VoiceResponseEnabled" -Label "TeamsAutoAttendantsByVoiceResponse"

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