Remove-SCOMManagementPack
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Remove-SCOMManagementPack
Removes management packs.
Syntax
Parameter Set: Default
Remove-SCOMManagementPack [-ManagementPack <ManagementPack> ] [ <CommonParameters>]
Detailed Description
The Remove-SCOMManagementPack cmdlet removes management packs along with all instances of types that are included in those management packs. You cannot remove a management pack on which other management packs that are not being removed, are dependent.
Parameters
-ManagementPack<ManagementPack>
Specifies the management pack to remove. You can specify a ManagementPack object that is returned by the Get-SCOMManagementPack or the Get-SCOMManagementPack cmdlet.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
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
This is the object returned by Get-SCManagementPack
Outputs
The output type is the type of the objects that the cmdlet emits.
- This cmdlet does not generate any output.
Examples
-------------------------- EXAMPLE 1 --------------------------
The pipelined command in this example removes all management packs in which the name matches the string "woodgrove".
PS C:\>PS C:\>Get-SCManagementPack | ?{ $_.name -match "Woodgrove" } |Remove-SCOMManagementPack
-------------------------- EXAMPLE 2 --------------------------
The command in this example removes all management packs in which the name matches the string "Woodgrove".
PS C:\>PS C:\>$mps = Get-SCManagementPack | ?{ $_.name -match "Woodgrove" }; Remove-SCOMManagementPack $mps