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>]
Description
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) 的名稱。
類型: | System.String[] |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ComputerName
指定要建立連線的電腦。 計算機必須執行 System Center 資料存取服務。 預設值是目前管理群組連線的計算機。
有效格式包括 NetBIOS 名稱、IP 位址或完整功能變數名稱 (FQDN)。 若要指定本機計算機,請輸入計算機名稱 「localhost」或點 (.)。
類型: | System.String[] |
Position: | Named |
預設值: | Localhost |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Credential
指定將執行管理群組連線的用戶帳戶。 如果指定伺服器,帳戶必須能夠存取 ComputerName 參數中指定的伺服器。 預設值為目前的使用者。
您可以輸入由 Get-Credential Cmdlet 所傳回 PSCredential 物件。
類型: | System.Management.Automation.PSCredential |
Position: | Named |
預設值: | The user account of the current context |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DisplayName
指定要擷取的管理元件顯示名稱。 此參數會解譯為正則表達式。
類型: | System.String[] |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-Id
指定要擷取的管理元件標識碼。
類型: | System.Guid[] |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ManagementPackFile
指定要擷取之管理元件的檔名 (.xml 或 .mp)。
類型: | System.String[] |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
指定要擷取的管理元件名稱。 此參數會解譯為正則表達式。
類型: | System.String[] |
Position: | 1 |
預設值: | .* |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Recurse
遞歸擷取所有相依於要擷取之管理元件的管理元件。
類型: | System.Management.Automation.SwitchParameter |
Position: | 2 |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-SCSession
指定與管理伺服器的連線。 預設值為目前的管理群組連線。
您可以輸入由 Get-SCManagementGroupConnection Cmdlet 所傳回的管理群組連接物件。
類型: | Microsoft.SystemCenter.Core.Connection.Connection[] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
System.Guid
您可以使用管線將管理元件的 GUID 傳送至 Get-SCSMManagementPack Cmdlet 的 Id 參數。
System.String
您可以使用管線將管理元件的名稱傳送至 Get-SCSMManagementPack Cmdlet 的 Name 參數。
輸出
Microsoft.EnterpiseManagement.Configuration.ManagementPack
管理元件物件包含管理元件及其屬性。