Get-SCSMManagementPack

Get-SCSMManagementPack

Retrieves management packs that have been imported into a management group; that exist in management pack files (.mp, .xml); or that reside within a management pack bundle (.mpb) file.

構文

Parameter Set: Empty
Get-SCSMManagementPack [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPackBundle
Get-SCSMManagementPack [-BundleFile] <String[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPackDisplayName
Get-SCSMManagementPack [-DisplayName] <String[]> [[-Recurse]] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPackFile
Get-SCSMManagementPack [-ManagementPackFile] <String[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPackGuid
Get-SCSMManagementPack [-Id] <Guid[]> [[-Recurse]] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPackName
Get-SCSMManagementPack [-Name] <String[]> [[-Recurse]] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

詳細説明

The Get-SCSMManagementPack cmdlet retrieves management packs that have been imported into a management group; that exist in management pack files (.mp, .xml); or that reside within a management pack bundle (.mpb) file.

パラメーター

-BundleFile<String[]>

Specifies the names of the management pack bundle files (.mpb) from which to retrieve management packs.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

true (ByValue, ByPropertyName)

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

false

-ComputerName<String[]>

Specifies a computer to establish a connection with. The computer must be running the System Center Data Access service. The default value is the computer for the current management group connection.

Valid formats include a NetBIOS name, an IP address, or a fully qualified domain name (FQDN). To specify the local computer, type the computer name, "localhost", or a dot (.).

エイリアス

なし

必須?

false

位置は?

named

既定値

localhost

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

true (ByValue)

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

false

-Credential<PSCredential>

Specifies a user account under which the management group connection will run. The account must have access to the server that is specified in the ComputerName parameter, if the server is specified. The default value is the current user.

You can enter a PSCredential object that is returned by the Get-Credential cmdlet.

エイリアス

なし

必須?

false

位置は?

named

既定値

The user account of the current context

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

true (ByValue)

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

false

-DisplayName<String[]>

Specifies the display name of the management packs to retrieve. This parameter is interpreted as a regular expression.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

true (ByValue, ByPropertyName)

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

false

-Id<Guid[]>

Specifies the Id of the management packs to retrieve.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

true (ByValue)

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

false

-ManagementPackFile<String[]>

Specifies the file name (.xml or .mp) of the management packs to retrieve.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

true (ByValue, ByPropertyName)

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

false

-Name<String[]>

Specifies the names of the management packs to retrieve. This parameter is interpreted as a regular expression.

エイリアス

なし

必須?

true

位置は?

1

既定値

.*

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

true (ByValue)

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

false

-Recurse

Recursively retrieves all management packs that depend on the management packs that are specified to be retrieved.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

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

false

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

false

-SCSession<Connection[]>

Specifies a connection to a management server. The default value is the current management group connection.

You can enter a management group connection object that is returned by the Get-SCManagementGroupConnection cmdlet.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByValue)

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

false

<CommonParameters>

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

入力

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

  • System.Guid

    You can pipe the Guid of a management pack to the Id parameter of the Get-SCSMManagementPack cmdlet.

  • System.String

    You can pipe the name of a management pack to the Name parameter of the Get-SCSMManagementPack cmdlet.

出力

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

  • Microsoft.EnterpiseManagement.Configuration.ManagementPack

    The management pack object contains the management pack and its properties.

-------------------------- EXAMPLE 1 --------------------------

The command in this example retrieves all imported management packs.

PS C:\>Get-SCSMManagementPack

-------------------------- EXAMPLE 2 --------------------------

The command in this example retrieves only the System.Library management pack.

PS C:\>Get-SCSMManagementPack -Name System.Library

関連トピック

Import-SCSMManagementPack

Export-SCSMManagementPack

New-SCSMManagementPack

Protect-SCSMManagementPack

Test-SCSMManagementPack

New-SCSMManagementPackBundle

Remove-SCSMManagementPack