Commands › Microsoft Teams
New-CsAutoAttendantPrompt
Create a new prompt.
Quick start script
# New-CsAutoAttendantPrompt — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsAutoAttendantPrompt
$before | Format-List
# 3. Make the change
New-CsAutoAttendantPrompt
# 4. Verify and diff
$after = Get-CsAutoAttendantPrompt
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 3 parameter sets
AudioFile
New-CsAutoAttendantPrompt -AudioFilePrompt <Object> [-Tenant <Guid>] [<CommonParameters>]
TextToSpeech
New-CsAutoAttendantPrompt -TextToSpeechPrompt <String> [-Tenant <Guid>] [<CommonParameters>]
Dual
New-CsAutoAttendantPrompt -ActiveType <None | TextToSpeech | AudioFile> -AudioFilePrompt <Object> -TextToSpeechPrompt <String> [-Tenant <Guid>] [<CommonParameters>]
Parameters (4)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.