< Back

Uninstall-CPerformanceCounterCategory

Sun Jan 12, 2020 11:42 pm

NAME Uninstall-CPerformanceCounterCategory



SYNOPSIS

Removes an entire performance counter category.





SYNTAX

Uninstall-CPerformanceCounterCategory [-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

-CategoryName <String>

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



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



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



PS C:\\>Uninstall-CPerformanceCounterCategory -CategoryName 'ToyotaCamry'



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











RELATED LINKS