Get-SCSPFVMRoleGalleryItemIcon
Get-SCSPFVMRoleGalleryItemIcon
Gets the icon associated with a virtual machine role item in the gallery.
構文
Parameter Set: FromGalleryItemParameterSetName
Get-SCSPFVMRoleGalleryItemIcon [-IconFileName] <String> [-VMRoleGalleryItem] <VMRoleGalleryItem> [ <CommonParameters>]
Parameter Set: FromGalleryItemNameVersionPublisherParameterSetName
Get-SCSPFVMRoleGalleryItemIcon -Name <String> -Publisher <String> -Version <String> [ <CommonParameters>]
詳細説明
The Get-SCSPFVMRoleGalleryItemIcon gets System.IO.MemoryStream object of the icon associated with the gallery item.
パラメーター
-Name<String>
Specifies the name of the gallery item.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Publisher<String>
Specifies the publisher of the gallery item.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Version<String>
Specifies the version of the gallery item.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VMRoleGalleryItem<VMRoleGalleryItem>
Specifies the gallery item associated with the icon.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-IconFileName<String>
Specifies the file name of the icon.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
1: Get the icon for a gallery item
The first command gets a gallery item and stores it in the $galItem
variable. The next command gets the icon object by specifying the required parameters with the variable. The IconFileName parameter is explicitly specified in case the variable has a null value for the icon file name.
PS C:\> $galItem = Get-SCSPFVMRoleGalleryItem -Name 570569955cbfb62b374358b34467020750f65c
PS C:\> $galItemIcon = Get-SCSPFVMRoleGalleryItemIcon -Name $galItem.Name -Publisher $galItem.Publisher -Version $galItem.Version -IconFilename "contoso.ico"