Commands › Microsoft Teams

Get-CsAutoAttendantHolidays

Microsoft Teams MicrosoftTeams Get-*

Use Get-CsAutoAttendantHolidays cmdlet to get the holiday information for an existing Auto Attendant (AA).

Quick start script

# Get-CsAutoAttendantHolidays — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Run and inspect
Get-CsAutoAttendantHolidays -Identity <String> | Format-List

# 3. Export for evidence / drift tracking
Get-CsAutoAttendantHolidays | Export-Clixml .\CsAutoAttendantHolidays-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-CsAutoAttendantHolidays [-Identity] <string> [-Force] [-Names <String[]>] [-Years <Int32[]>] [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Force SwitchParameter The Force switch specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn't provided in the command, you're prompted for...
-Identity String yes Represents the identifier for the auto attendant whose holidays are to be retrieved.
-Names String[] The Names parameter represents the names for the holidays to be retrieved. If this parameter is not specified, then all holidays in the AA are returned.
-Years Int32[] The Years parameter represents the years for the holidays to be retrieved. If this parameter is not specified, then holidays for all years in the AA are returned.

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