Get-EntraContactThumbnailPhoto

Retrieves the thumbnail photo of a contact.

Syntax

Get-EntraContactThumbnailPhoto
   -ObjectId <String>
   [-FilePath <String>]
   [-FileName <String>]
   [-View <Boolean>]
   [<CommonParameters>]

Description

Retrieves the thumbnail photo of a contact.

Examples

Example 1: Get the memberships of a contact

Connect-Entra -Scopes 'Contacts.Read'
Get-EntraContactThumbnailPhoto -ObjectId 'bbbbbbbb-1111-2222-3333-cccccccccccc'

Tag                  :
PhysicalDimension    : {Width=279, Height=390}
Size                 : {Width=279, Height=390}
Width                : 279
Height               : 390
HorizontalResolution : 96
VerticalResolution   : 96
Flags                : 77840
RawFormat            : [ImageFormat: aaaa0000-bb11-2222-33cc-444444dddddd]
PixelFormat          : Format24bppRgb
Palette              : System.Drawing.Imaging.ColorPalette
FrameDimensionsList  : {eeee4444-ff55-6666-77aa-888888bbbbbb}
PropertyIdList       : {274, 305, 306, 36867...}
PropertyItems        : {274, 305, 306, 36867...}

This example retrieves the thumbnail photo of the contact object specified with the object ID parameter.

Parameters

-FileName

When provided, the cmdlet writes a copy of the thumbnail photo to this filename.

Type:System.String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-FilePath

When provided, the cmdlet writes a copy of the thumbnail photo to this file path using a random filename.

Type:System.String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ObjectId

The object ID of the contact for which the thumbnail photo is retrieved.

Type:System.String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-View

If this parameter value is set to $True, display the retrieved thumbnail photo in a new window.

Type:System.Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.String

System.Boolean

Outputs

System.Object