Import-SCManagementPack
將 System Center Operations Manager 管理元件匯入 Operations Manager 環境。
Syntax
Import-SCManagementPack
[-Fullname] <String[]>
[-PassThru]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Import-SCManagementPack
[-ManagementPack] <ManagementPack[]>
[-PassThru]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Import-SCManagementPack Cmdlet 會將 System Center Operations Manager (SCOM) 管理元件匯入 SCOM 環境。 您也可以使用 Import-SCOMManagementPack
來執行此命令。
根據預設,此 Cmdlet 會使用與管理群組的作用中持續性連線。 使用 SCSession 參數來指定不同的持續性連線。 您可以使用 ComputerName 和 Credential 參數,建立與管理群組的暫時連線。 如需詳細資訊,請鍵入 Get-Help about_OpsMgr_Connections
。
範例
1:匯入 System Center Operations Manager 管理元件
PS C:\>Import-SCManagementPack -FullName "C:\temp\customMP.xml"
匯入 System Center Operations Manager 管理元件,其名稱為 C:\temp
customMP.xml。
2:使用管線匯入 System Center Operations Manager 管理元件
PS C:\>Get-SCManagementPack -ManagementPackFile "C:\Program Files\Microsoft System Center\Management Pack Tools\Microsoft.ACS.Unix.Library.mp" | Import-SCManagementPack
匯入 System Center Operations Manager 管理元件,其名稱為 C:\Program Files\Microsoft System Center\Management Pack Tools\
Microsoft.ACS.Unix.Library.mp。
參數
-ComputerName
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
在執行 Cmdlet 前提示您確認。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Fullname
Type: | String[] |
Aliases: | Path |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ManagementPack
Type: | ManagementPack[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PassThru
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCSession
Type: | Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。
Cmdlet 並不會執行。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |