Remove-SCSMManagementPack
Updated: September 10, 2012
Applies To: System Center 2012 - Service Manager, System Center 2012 SP1 - Service Manager
Remove-SCSMManagementPack
Syntax
Parameter Set: FromManagementPack Remove-SCSMManagementPack [-ManagementPack] <ManagementPack[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Remove-SCSMManagementPack 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, which 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-SCManagementPack 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 the Remove-SCSMManagementPack cmdlet, for example, the object that is returned by the Get-SCManagementPack 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 --------------------------
The pipelined command in this example removes all management packs in which the name matches the string "woodgrove".
PS C:\>Get-SCManagementPack | where{ $_.name -match "Woodgrove" } |Remove-SCSMManagementPack
-------------------------- EXAMPLE 2 --------------------------
The command in this example removes all management packs in which the name matches the string "Woodgrove".
PS C:\>$mps = Get-SCManagementPack | where{ $_.name -match "Woodgrove" }; Remove-SCSMManagementPack $mps
