Import-SCManagementPack
将 System Center Operations Manager 管理包导入 Operations Manager 环境。
语法
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>]
说明
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"
导入名称为customMP.xml的 System Center Operations Manager 管理包C:\temp
。
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
导入名称为 Microsoft.ACS.Unix.Library.mp 的 System Center Operations Manager 管理包 C:\Program Files\Microsoft System Center\Management Pack Tools\
。
参数
-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 |