Set Outlook Contact Photo
Zuletzt geändert: 20.03.2026 21:17

Set-OutlookContactPhoto #

ÜBERSICHT #

Lädt ein Kontaktfoto nach Outlook hoch über die Microsoft Graph API.

SYNTAX #

Set-OutlookContactPhoto [-Token] <string> [-OutlookContactId] <string> [-PhotoBytes] <byte[]>
    [[-FolderId] <string>] [[-UserEmail] <string>] [<CommonParameters>]

BESCHREIBUNG #

Setzt das Foto eines Outlook-Kontakts. Das Bild wird als Byte-Array übergeben und per PUT an die Graph API gesendet. JPEG- und PNG-Format werden automatisch anhand der Header-Bytes erkannt.

PARAMETER #

-Token #

Type: string

Bearer-Token für die Graph API (von Get-GraphToken).

-OutlookContactId #

Type: string

Die Outlook-Kontakt-ID (aus Set-OutlookContact).

-PhotoBytes #

Type: byte[]

Bild als Byte-Array (JPEG oder PNG).

-FolderId #

Type: string

ID des Kontaktordners.

-UserEmail #

Type: string

E-Mail-Adresse des Postfachs (nur Service-Flow).

AUSGABEN #

void

BEISPIELE #

Set-OutlookContactPhoto -Token $token -OutlookContactId $contactId -PhotoBytes $imageBytes