Export (0) Print
Expand All
Expand Minimize

Remove-SCOMManagementPack

Updated: February 26, 2014

Applies To: System Center 2012 - Operations Manager, System Center 2012 R2 Operations Manager, System Center 2012 SP1 - Operations Manager

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 executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


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.

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

Related topics


Import-SCOMManagementPack

New-SCOMManagementPackBundle

Export-SCOMManagementPack

Get-SCOMManagementPack

New-SCOMManagementPack

Protect-SCOMManagementPack

Test-SCOMManagementPack

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft