Test-PerformanceCounterCategory

Tests if a performance counter category exists.

Syntax

Test-PerformanceCounterCategory [-CategoryName] <String> [<CommonParameters>]

Description

Returns True if category CategoryName exists. False if it does not exist.

Parameters

Name Type Description Required? Pipeline Input Default Value
CategoryName String

The name of the cateogry whose existence to check.

true false

EXAMPLE 1

Test-PerformanceCounterCategory -CategoryName 'ToyotaCamry'

Returns True if the ToyotaCamry performance counter category exists. False if the category doesn't exist.