Commands › Microsoft Teams

New-CsAutoAttendantMenu

Microsoft Teams MicrosoftTeams New-*

The New-CsAutoAttendantMenu cmdlet creates a new menu.

Quick start script

# New-CsAutoAttendantMenu — 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-CsAutoAttendantMenu
$before | Format-List

# 3. Make the change
New-CsAutoAttendantMenu -Name <String>

# 4. Verify and diff
$after = Get-CsAutoAttendantMenu
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

New-CsAutoAttendantMenu -Name <String> [-MenuOptions <List>] [-Prompts <List>] [-EnableDialByName] [-Tenant <Guid>] [-DirectorySearchMethod] [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-DirectorySearchMethod DirectorySearchMethod The DirectorySearchMethod parameter lets you define the type of Directory Search Method for the Auto Attendant menu, for more information, see [Set up a Cloud auto...
-EnableDialByName SwitchParameter The EnableDialByName parameter lets users do a directory search by recipient name and get transferred to the party.
-MenuOptions List The MenuOptions parameter is a list of menu options for this menu. These menu options specify what action to take when the user sends a particular input.
-Name String yes The Name parameter represents a friendly name for the menu.
-Prompts Object The Prompts parameter reflects the prompts to play when the menu is activated.
-Tenant Guid This parameter is reserved for Microsoft internal use only.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.