Get-SCSPFVMRoleGalleryItemPackage
Get-SCSPFVMRoleGalleryItemPackage
Gets the package that created an item in the gallery.
構文
Parameter Set: FromGalleryItemParameterSetName
Get-SCSPFVMRoleGalleryItemPackage [-VMRoleGalleryItem] <VMRoleGalleryItem> [ <CommonParameters>]
Parameter Set: FromGalleryItemNameVersionPublisherParameterSetName
Get-SCSPFVMRoleGalleryItemPackage -Name <String> -Publisher <String> -Version <String> [ <CommonParameters>]
詳細説明
The Get-SCSPFVMRoleGalleryItem cmdlets gets an object of type System.IO.Memory stream that contains the gallery item resource package.
パラメーター
-Name<String>
Specifies the name that package that installs the gallery item.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Publisher<String>
Specifies the publisher of the gallery package.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Version<String>
Specifies the version of the gallery item.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VMRoleGalleryItem<VMRoleGalleryItem>
Specifies a gallery item object.
エイリアス |
なし |
必須? |
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 package by name, publisher, and version
This command gets the package of the gallery item by specifying the name, publisher, and version of the gallery item.
PS C:\> $galPkg = Get-SCSPFVMRoleGalleryItemPackage -Name 570569955cbfb62b37435
8b34467020750f65c -Publisher Microsoft -Version 1.0.0.0
2: Get the package from a gallery item
The first command gets a gallery item from its name and stores it in the $galItem
object variable. The next command gets the package with VMRoleGalleryItem parameter.
PS C:\> $galItem = Get-SCSPFVMRoleGalleryItem -Name 570569955cbfb62b374358b34467
020750f65c
PS C:\> $galPkg = Get-SCSPFVMRoleGalleryItemPackage -VMRoleGalleryItem $galItem