Uninstall-ManagementPack

Uninstall-ManagementPack

Uninstalls a management pack.

Syntax

Parameter Set: FromManagementPack
Uninstall-ManagementPack [-ManagementPack] <ManagementPack> [[-Path] <String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

Uninstalls a management pack.

Parameters

-ManagementPack<ManagementPack>

Specifies the management pack to uninstall.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Path<String[]>

Specifies the path or a set of paths to the management groups from which to uninstall the management packs. To enter more than one value, separate them by using commas.

Aliases

none

Required?

false

Position?

2

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

none

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

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

Notes

  • For more information, type "Get-Help Uninstall-ManagementPack -detailed". For technical information, type "Get-Help Uninstall-ManagementPack -full".
    When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

Examples

-------------- EXAMPLE 1 --------------

This command first uses Get-ManagementPack to retrieve a reference to the management pack named Microsoft.Windows.Server.2003. It stores the reference in the $mp variable. Then it uses Uninstall-ManagementPack, passing in the reference as the value of the ManagementPack parameter, to uninstall the management pack.

C:\PS>$mp = get-managementpack |
where-object {$_.Name -eq 'Microsoft.Windows.Server.2003'}
uninstall-managementpack -managementpack $mp

Export-ManagementPack

Install-ManagementPack