共用方式為


Get-AzureADUserThumbnailPhoto

擷取用戶的縮圖相片

語法

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

Description

擷取用戶的縮圖相片

範例

範例 1

PS C:\WINDOWS\system32> Get-AzureADUserThumbnailPhoto -ObjectId df19e8e6-2ad7-453e-87f5-037f6529ae16


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...}

此範例示範如何擷取透過 ObejctId 參數值所指定之使用者的縮圖相片

參數

-FileName

如果指定,縮圖相片的複本會寫入指定的檔名

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-FilePath

如果指定,縮圖相片的複本會寫入具有隨機名稱的指定檔案路徑

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-ObjectId

擷取縮圖相片的用戶物件標識碼

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-View

如果為 true,請在新視窗中檢視畫面上的相片

類型:Boolean
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

輸入

String

System.Boolean

輸出

Object