< Back
Get-CPerformanceCounter
Post
NAME Get-CPerformanceCounter
SYNOPSIS
Gets the performance counters for a category.
SYNTAX
Get-CPerformanceCounter [-CategoryName] <String> [<CommonParameters>]
DESCRIPTION
Returns `PerformanceCounterCategory` objects for the given category name. If not counters exist for the category
exits, an empty array is returned.
PARAMETERS
-CategoryName <String>
The category's name whose performance counters will be returned.
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
System.Diagnostics.PerformanceCounterCategory.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-CPerformanceCounter -CategoryName Processor
Gets all the `Processor` performance counters.
RELATED LINKS
SYNOPSIS
Gets the performance counters for a category.
SYNTAX
Get-CPerformanceCounter [-CategoryName] <String> [<CommonParameters>]
DESCRIPTION
Returns `PerformanceCounterCategory` objects for the given category name. If not counters exist for the category
exits, an empty array is returned.
PARAMETERS
-CategoryName <String>
The category's name whose performance counters will be returned.
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
System.Diagnostics.PerformanceCounterCategory.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-CPerformanceCounter -CategoryName Processor
Gets all the `Processor` performance counters.
RELATED LINKS