Get-CMPackage

Get-CMPackage

Gets Configuration Manager packages.

構文

Parameter Set: SearchByName
Get-CMPackage [-Name <String> ] [-SecuredScopeNames <String> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMPackage -Id <String[]> [-SecuredScopeNames <String> ] [ <CommonParameters>]

詳細説明

The Get-CMPackage cmdlet gets Microsoft System Center 2012 Configuration Manager packages. System Center 2012 Configuration Manager uses packages to distribute software to clients. You can use the SecuredScopeNames parameter to specify the security scope of a package to get.

パラメーター

-Id<String[]>

Specifies an array of package IDs.

エイリアス

PackageId

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Name<String>

Specifies the name of a package.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SecuredScopeNames<String>

Specifies names of security scopes. A security scope name can be Default or the name of a custom-created security scope.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Get all packages

This command gets all Configuration Manager packages.

PS C:\> Get-CMPackage

Example 2: Get a package by using an ID

This command gets the program that has the ID CM100002.

PS C:\> Get-CMPackage -Id "CM100002"

Example 3: Get a package by using a name

This command gets the program named Configuration Manager Client Package.

PS C:\> Get-CMPackage -Name "Configuration Manager Client Package"

関連トピック

Export-CMPackage

Import-CMPackage

New-CMPackage

Remove-CMPackage

Set-CMPackage