Share via


Remove-SCOMManagementPack

Remove-SCOMManagementPack

Removes management packs.

Syntax

Parameter Set: FromManagementPack
Remove-SCOMManagementPack [-ManagementPack] <ManagementPack[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Remove-SCOMManagementPack cmdlet removes System Center 2012 – Operations Manager management packs from a management group. When the cmdlet removes a management pack, it also removes all instances of types included in that management pack. You cannot remove a management pack on which other management packs depend.

Parameters

-ManagementPack<ManagementPack[]>

Specifies an array of ManagementPack objects. To obtain a ManagementPack object, use the Get-SCOMManagementPack cmdlet.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.EnterpriseManagement.Configuration.ManagementPack

    You can pipe a management pack to the ManagementPack parameter of this cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • None.

    This cmdlet does not generate any output.

Examples

Example 1: Remove management packs by using names

This example removes all management packs that have names that contain the string Woodgrove. The first command uses the Get-SCOMManagementPack cmdlet to get management packs, and then uses the pipeline operator to pass them to the Where-Object cmdlet. The Where-Object cmdlet drops all management packs that do not have names that contain Woodgrove. For more information, type Get-Help Where-Object. The command then stores any matching management packs in the $MPS variable.

The second command removes the management packs that the objects stored in the $MPS variable specify.

PS C:\> $MPS = Get-SCOMManagementPack | Where-Object { $_.name -match "Woodgrove" } 
PS C:\> Remove-SCOMManagementPack -ManagementPack $MPS

Get-SCOMManagementPack

Export-SCOMManagementPack

Import-SCOMManagementPack

New-SCOMManagementPack

Protect-SCOMManagementPack

Test-SCOMManagementPack

New-SCOMManagementPackBundle

Where-Object