Remove-SCManagementPack

Remove a System Center Operations Manager management pack in your Operations Manager environment.

Syntax

Remove-SCManagementPack
      [-ManagementPack] <ManagementPack[]>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCManagementPack cmdlet removes a System Center Operations Manager management pack. This command can also be executed with Remove-SCOMManagementPack.

Examples

1: Remove a System Center Operations Manager management pack

PS C:\> $ManagementPack = Get-SCManagementPack -DisplayName "Test Overrides"
Remove-SCManagementPack -ManagementPack $ManagementPack

Gets and then removes an existing System Center Operations Manager management pack, using its display name.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ManagementPack

Type:ManagementPack[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False