Commands › Exchange Online

Import-RecipientDataProperty

Exchange Online ExchangeOnlineManagement Import-*

Add a picture or a spoken name audio file to a mailbox or mail contact. **Note**: Profile cards across Microsoft apps and services don't support imported pictures for mail contacts.

Quick start script

# Import-RecipientDataProperty — 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-RecipientDataProperty -Identity <MailboxUserContactIdParameter> -FileData <Byte[]> | Format-List

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

Syntax — 2 parameter sets

ImportPicture

Import-RecipientDataProperty [-Identity] <MailboxUserContactIdParameter> -FileData <Byte[]>
 [-Picture]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-WhatIf]
 [<CommonParameters>]

ImportSpokenName

Import-RecipientDataProperty [-Identity] <MailboxUserContactIdParameter> -FileData <Byte[]>
 [-SpokenName]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-Identity MailboxUserContactIdParameter yes The Identity parameter specifies the mailbox or contact that you're adding the picture or spoken name file to. You can use any value that uniquely identifies the user. For example:
-FileData Byte[] yes The FileData parameter specifies the picture or spoken name file that you want to import.
-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 This parameter is available only in on-premises Exchange.
-Picture SwitchParameter The Picture switch specifies that you're importing the user's picture file. You don't need to specify a value with this switch.
-SpokenName SwitchParameter This parameter is available only in on-premises Exchange.
-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.