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-SCSMManagementPackSealed Name DisplayName------ ---- -----------True Microsoft.SystemCenter.InstanceGroup.Library Instance Group LibraryTrue Microsoft.Windows.Peripheral.Library Windows Peripheral LibraryTrue ServiceManager.ActivityManagement.LibraryTrue System.Software.Library System Software LibraryTrue Microsoft.SystemCenter.Deployment.LibraryTrue ServiceManager.KnowledgeManagement.LibraryTrue Microsoft.EnterpriseManagement.ServiceManager.UI.Administration ServiceManager Administration ManagementPackFalse ServiceManager.LinkingFramework.ConfigurationTrue ServiceManager.LinkingFramework.LibraryTrue System.Snmp.Library SNMP LibraryTrue ServiceManager.Core.Library Service Manager Core LibraryTrue Microsoft.EnterpriseManagement.ServiceManager.UI.Console Service Manager Console ManagementPackTrue System.ApplicationLog.Library Application Log LibraryTrue Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring Service Manager Authoring ManagementPackTrue Microsoft.SystemCenter.Library System Center Core LibraryFalse Microsoft.EnterpriseManagement.ServiceManager.DefaultTrue Microsoft.SystemCenter.WorkItemGroup.Library Instance Group LibraryTrue System.Library System LibraryTrue Microsoft.Windows.Library Windows Core LibraryTrue Microsoft.SystemCenter.ConfigurationManager Microsoft SystemCenter ConfigurationManager LibraryTrue Microsoft.EnterpriseManagement.ServiceManager.Connector.SmsFalse ServiceManager.ChangeManagement.Configuration ServiceManager ChangeManagement ConfigurationTrue System.Health.Library Health LibraryTrue Microsoft.SystemCenter.WorkflowFoundation.Library System Center Workflow Foundation LibraryTrue Microsoft.SystemCenter.Report.LibraryTrue ServiceManager.Datawarehouse.LibraryTrue Microsoft.EnterpriseManagement.ServiceManager.Connector.ADTrue ServiceManager.ConfigurationManagement.LibraryFalse ServiceManager.ActivityManagement.ConfigurationTrue System.Notifications.Library System Notification LibraryTrue ServiceManager.IncidentManagement.Library Incident Management LibraryTrue Microsoft.SystemCenter.SubscriptionsTrue ServiceManager.ChangeManagement.LibraryTrue System.Performance.Library Performance LibraryFalse ServiceManager.IncidentManagement.Configuration Incident Management Configuration
-------------------------- EXAMPLE 2 --------------------------
Description
-----------
This command retrieves the System.Library management pack.
C:\PS>Get-SCSMManagementPack -name System.LibrarySealed 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,DeploymentStatusName DeploymentStatus---- -----------Microsoft.SystemCenter.InstanceGroup.Library In ProcessMicrosoft.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() }
Related topics
Getting Started with Service Manager Cmdlets for Windows PowerShell