Commands › Microsoft Teams

Import-CsAutoAttendantHolidays

Microsoft Teams MicrosoftTeams Import-*

Use Import-CsAutoAttendantHolidays cmdlet to import holiday schedules of an existing Auto Attendant (AA) that were previously exported using the Export-CsAutoAttendantHolidays cmdlet.

Quick start script

# Import-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
Import-CsAutoAttendantHolidays -Identity <String> -Input <Byte[]> | Format-List

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

Syntax

Import-CsAutoAttendantHolidays -Identity <String> -Input <byte[]> [-Tenant <Guid>] [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Identity String yes The identity for the AA whose holiday schedules are to be imported.
-Input Byte[] yes The Input parameter specifies the holiday schedule information that is to be imported.
-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.