Get-SCSMManagementPack

Get-SCSMManagementPack

Gets installed management packs.

Syntax

Parameter Set: BundleFile
Get-SCSMManagementPack [[-Name] <String[]> ] [-ComputerName <String> ] [-Credential <PSCredential> ] [-FullName <String> ] [ <CommonParameters>]

Detailed Description

The Get-SCSMManagementPack cmdlet gets the Service Manager management packs that have been imported into the system named by the ComputerName parameter. The management packs are listed in the order in which they are detected.
The Name parameter specifies the name of the management pack to retrieve. This parameter is interpreted as a regular expression: Get-SCSMManagementPack returns all management packs that have a Name or a DisplayName property that matches the specified regular expression.

Parameters

-ComputerName<String>

Specifies the name of the computer on which the Service Manager SDK Service is running. The default value is "localhost". The user account that is defined in the Credential parameter must have access rights to the specified computer.

Aliases

none

Required?

false

Position?

named

Default Value

localhost

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Credential<PSCredential>

Specifies the credentials to use when you connect to the server on which the Service Manager SDK Service is running. The provided user account must have access to that server. The default value for this parameter is the user account of the current context.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-FullName<String>

Specifies the file name of a management pack bundle file (.mpb). The management pack bundle file may contain a number of different management packs. Using this parameter allows you to discover the management packs in a bundle file.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String[]>

Specifies the name of the management pack to retrieve.

Aliases

none

Required?

false

Position?

1

Default Value

.*

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.EnterpiseManagement.Configuration.ManagementPack

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

Examples

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

Description

-----------

This command retrieves all installed management packs.

C:\PS>Get-SCSMManagementPack
Sealed Name                                                            DisplayName
------ ----                                                            -----------
True Microsoft.SystemCenter.InstanceGroup.Library                    Instance Group Library
True Microsoft.Windows.Peripheral.Library                            Windows Peripheral Library
True ServiceManager.ActivityManagement.Library
True System.Software.Library                                         System Software Library
True Microsoft.SystemCenter.Deployment.Library
True ServiceManager.KnowledgeManagement.Library
True Microsoft.EnterpriseManagement.ServiceManager.UI.Administration ServiceManager Administration ManagementPack
False ServiceManager.LinkingFramework.Configuration
True ServiceManager.LinkingFramework.Library
True System.Snmp.Library                                             SNMP Library
True ServiceManager.Core.Library                                     Service Manager Core Library
True Microsoft.EnterpriseManagement.ServiceManager.UI.Console        Service Manager Console ManagementPack
True System.ApplicationLog.Library                                   Application Log Library
True Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring      Service Manager Authoring ManagementPack
True Microsoft.SystemCenter.Library                                  System Center Core Library
False Microsoft.EnterpriseManagement.ServiceManager.Default
True Microsoft.SystemCenter.WorkItemGroup.Library                    Instance Group Library
True System.Library                                                  System Library
True Microsoft.Windows.Library                                       Windows Core Library
True Microsoft.SystemCenter.ConfigurationManager                     Microsoft SystemCenter ConfigurationManager Library
True Microsoft.EnterpriseManagement.ServiceManager.Connector.Sms
False ServiceManager.ChangeManagement.Configuration                   ServiceManager ChangeManagement Configuration
True System.Health.Library                                           Health Library
True Microsoft.SystemCenter.WorkflowFoundation.Library               System Center Workflow Foundation Library
True Microsoft.SystemCenter.Report.Library
True ServiceManager.Datawarehouse.Library
True Microsoft.EnterpriseManagement.ServiceManager.Connector.AD
True ServiceManager.ConfigurationManagement.Library
False ServiceManager.ActivityManagement.Configuration
True System.Notifications.Library                                    System Notification Library
True ServiceManager.IncidentManagement.Library                       Incident Management Library
True Microsoft.SystemCenter.Subscriptions
True ServiceManager.ChangeManagement.Library
True System.Performance.Library                                      Performance Library
False ServiceManager.IncidentManagement.Configuration                 Incident Management Configuration

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

Description

-----------

This command retrieves the System.Library management pack.

C:\PS>Get-SCSMManagementPack -name System.Library
Sealed Name           DisplayName
------ ----           -----------
True System.Library System Library

-------------------------- EXAMPLE 3 --------------------------

Description

-----------

This command shows the deployment status of management packs that did not deploy successfully.

C:\PS>Get-SCSMManagementPack | ?{ $_.DeploymentStatus -ne "Success" } | Format-Table Name,DeploymentStatus
Name                                              DeploymentStatus
----                                              -----------
Microsoft.SystemCenter.InstanceGroup.Library      In Process
Microsoft.Windows.Peripheral.Library              Failed

-------------------------- EXAMPLE 4 --------------------------

Description

-----------

This command attempts to redeploy the management packs that did not deploy successfully. The DeployManagementPack method on the object returned by Get-SCSMManagementPack does not return a value. To retrieve the status of the deployment, run the Get-SCSMManagementPack cmdlet and check the DeploymentStatus property (as shown in example 3).

C:\PS>Get-SCSMManagementPack|?{$_.DeploymentStatus -eq "Failed"}|%{ $_.DeployManagementPack() }

Getting Started with Service Manager Cmdlets for Windows PowerShell

Export-SCSMManagementPack
Import-SCSMManagementPack