< Back
Test-CPerformanceCounterCategory
Post
NAME Test-CPerformanceCounterCategory
SYNOPSIS
Tests if a performance counter category exists.
SYNTAX
Test-CPerformanceCounterCategory [-CategoryName] <String> [<CommonParameters>]
DESCRIPTION
Returns `True` if category `CategoryName` exists. `False` if it does not exist.
PARAMETERS
-CategoryName <String>
The name of the cateogry whose existence to check.
Required? true
Position? 1
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:\\>Test-CPerformanceCounterCategory -CategoryName 'ToyotaCamry'
Returns `True` if the `ToyotaCamry` performance counter category exists. `False` if the category doesn't exist.
RELATED LINKS
SYNOPSIS
Tests if a performance counter category exists.
SYNTAX
Test-CPerformanceCounterCategory [-CategoryName] <String> [<CommonParameters>]
DESCRIPTION
Returns `True` if category `CategoryName` exists. `False` if it does not exist.
PARAMETERS
-CategoryName <String>
The name of the cateogry whose existence to check.
Required? true
Position? 1
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:\\>Test-CPerformanceCounterCategory -CategoryName 'ToyotaCamry'
Returns `True` if the `ToyotaCamry` performance counter category exists. `False` if the category doesn't exist.
RELATED LINKS