Get-SCSMManagementPack
取得管理元件。
Syntax
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) 的名稱。
Type: | System.String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ComputerName
指定要建立連線的電腦。 電腦必須執行 System Center 資料存取服務。 預設值是目前管理群組連線的電腦。
有效格式包括 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
指定要擷取的管理元件識別碼。
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
管理組件物件包含管理組件及其屬性。