Commands › Exchange Online

Import-UMPrompt

Exchange Online ExchangeOnlineManagement Import-*

Copy or upload a custom audio file to be used by Unified Messaging (UM) dial plans and auto attendants.

Quick start script

# Import-UMPrompt — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Import-UMPrompt -PromptFileData <Byte[]> -PromptFileName <String> -PromptFileStream <Stream> | Format-List

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

Syntax — 4 parameter sets

UploadDialPlanPrompts

Import-UMPrompt -PromptFileData <Byte[]> -PromptFileName <String> -UMDialPlan <UMDialPlanIdParameter>
 [-Confirm]
 [-DomainController <Fqdn>]
 [-WhatIf]
 [<CommonParameters>]

UploadAutoAttendantPrompts

Import-UMPrompt -PromptFileData <Byte[]> -PromptFileName <String> -UMAutoAttendant <UMAutoAttendantIdParameter>
 [-Confirm]
 [-DomainController <Fqdn>]
 [-WhatIf]
 [<CommonParameters>]

UploadAutoAttendantPromptsStream

Import-UMPrompt -PromptFileName <String> -PromptFileStream <Stream> -UMAutoAttendant <UMAutoAttendantIdParameter>
 [-Confirm]
 [-DomainController <Fqdn>]
 [-WhatIf]
 [<CommonParameters>]

UploadDialPlanPromptsStream

Import-UMPrompt -PromptFileName <String> -PromptFileStream <Stream> -UMDialPlan <UMDialPlanIdParameter>
 [-Confirm]
 [-DomainController <Fqdn>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-PromptFileData Byte[] yes The PromptFileData parameter specifies the byte array of the custom prompt.
-PromptFileName String yes The PromptFileName parameter specifies the name of the custom prompt.
-PromptFileStream Stream yes The PromptFileStream parameter specifies whether the audio file is uploaded or imported as an audio stream and not a byte array. The default setting is for the audio file to imported as a byte array.
-UMAutoAttendant UMAutoAttendantIdParameter yes The UMAutoAttendant parameter specifies the UM auto attendant ID. This parameter specifies the directory object identifier for the UM auto attendant.
-UMDialPlan UMDialPlanIdParameter yes The UMDialPlan parameter specifies the UM dial plan ID. This parameter specifies the directory object identifier for the UM dial plan.
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

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