Get-SCSMManagementPack
获取管理包。
语法
Get-SCSMManagementPack
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCSMManagementPack
[-BundleFile] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCSMManagementPack
[-ManagementPackFile] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCSMManagementPack
[-DisplayName] <String[]>
[-Recurse]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCSMManagementPack
[-Id] <Guid[]>
[-Recurse]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCSMManagementPack
[-Name] <String[]>
[-Recurse]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
说明
Get-SCSMManagementPack cmdlet 检索已导入管理组、存在于管理包文件 (.mp、.xml) 或驻留在管理包捆绑包 (.mpb) 文件中的管理包。
示例
示例 1:获取所有导入的管理包
PS C:\>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
此命令检索所有导入的管理包。
示例 2:获取单个管理包
PS C:\>Get-SCSMManagementPack -Name "System.Library"
Sealed Name DisplayName
------ ---- -----------
True System.Library System Library
此命令检索 System.Library 管理包。
参数
-BundleFile
指定要从中检索管理包的管理包捆绑文件 (.mpb) 的名称。
Type: | System.String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ComputerName
指定要与其建立连接的计算机。 计算机必须运行 System Center Data Access 服务。 默认值是用于当前管理组连接的计算机。
有效格式包括 NetBIOS 名称、IP 地址或完全限定的域名 (FQDN)。 若要指定本地计算机,请键入该计算机名称、“localhost”或句点 (.)。
Type: | System.String[] |
Position: | Named |
Default value: | Localhost |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
指定用于运行管理组连接的用户帐户。 如果指定了服务器,则帐户必须有权访问 ComputerName 参数中指定的服务器。 默认值为当前用户。
可以输入 Get-Credential cmdlet 返回的 PSCredential 对象。
Type: | System.Management.Automation.PSCredential |
Position: | Named |
Default value: | The user account of the current context |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
指定要检索的管理包的显示名称。 此参数被解释为正则表达式。
Type: | System.String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
指定要检索的管理包的 ID。
Type: | System.Guid[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ManagementPackFile
指定要检索的管理包的文件名(.xml 或 .mp)。
Type: | System.String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定要检索的管理包的名称。 此参数被解释为正则表达式。
Type: | System.String[] |
Position: | 1 |
Default value: | .* |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Recurse
以递归方式检索依赖于指定为进行检索的管理包的所有管理包。
Type: | System.Management.Automation.SwitchParameter |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCSession
指定与管理服务器的连接。 默认值是当前管理组连接。
可以输入 由 Get-SCManagementGroupConnection cmdlet 返回的管理组连接对象。
Type: | Microsoft.SystemCenter.Core.Connection.Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
输入
System.Guid
可以通过管道将管理包的 GUID 传递给 Get-SCSMManagementPack cmdlet 的 Id 参数。
System.String
可以通过管道将管理包的名称传递给 Get-SCSMManagementPack cmdlet 的 Name 参数。
输出
Microsoft.EnterpiseManagement.Configuration.ManagementPack
该管理包对象包含管理包及其属性。