Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Get-EntraContactThumbnailPhoto

Retrieves the thumbnail photo of a contact.

Syntax

Default (Default)

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.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-FilePath

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

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ObjectId

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

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-View

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

Parameter properties

Type:System.Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.String

System.Boolean

Outputs

System.Object


Feedback

Was this page helpful?