Get-AzureADUserThumbnailPhoto

Retrieve the thumbnail photo of a user

Syntax

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

Description

Retrieve the thumbnail photo of a user

Examples

Example 1

PS C:\WINDOWS\system32> Get-AzureADUserThumbnailPhoto -ObjectId aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb


Tag                  :
PhysicalDimension    : {Width=279, Height=390}
Size                 : {Width=279, Height=390}
Width                : 279
Height               : 390
HorizontalResolution : 96
VerticalResolution   : 96
Flags                : 77840
RawFormat            : [ImageFormat: b96b3cae-0728-11d3-9d7b-0000f81ef32e]
PixelFormat          : Format24bppRgb
Palette              : System.Drawing.Imaging.ColorPalette
FrameDimensionsList  : {7462dc86-6180-4c7e-8e3f-ee7333a7a483}
PropertyIdList       : {11, 274, 305, 306...}
PropertyItems        : {11, 274, 305, 306...}

This example shows how to retrieve the thumbnail photo of a user that is specified through the value of the ObejctId parameter

Parameters

-FileName

If specified, a copy of the thumbnail photo is written to the specified file name

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

-FilePath

If specified, a copy of the thumbnail photo is written to the specified file path with a random name

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

-ObjectId

The object ID of the user for which the thumbnail photo is retrieved

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

-View

If true, view the photo on the screen in a new window

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

Inputs

String

System.Boolean

Outputs

Object