Uninstall-PerformanceCounterCategory

Removes an entire performance counter category.

Syntax

Uninstall-PerformanceCounterCategory [-CategoryName] <String> [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Removes, with extreme prejudice, the performance counter category CategoryName. All its performance counters are also deleted. If the performance counter category doesn't exist, nothing happens. I hope you have good backups!

Parameters

Name Type Description Required? Pipeline Input Default Value
CategoryName String

The performance counter's category name that should be deleted.

true false
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.

EXAMPLE 1

Uninstall-PerformanceCounterCategory -CategoryName 'ToyotaCamry'

Removes the ToyotaCamry performance counter category and all its performance counters. So sad!