Get-PerformanceCounter

Gets the performance counters for a category.

Syntax

Get-PerformanceCounter [-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

Name Type Description Required? Pipeline Input Default Value
CategoryName String

The category's name whose performance counters will be returned.

true false

Return Values

System.Diagnostics.PerformanceCounterCategory.

EXAMPLE 1

Get-PerformanceCounter -CategoryName Processor

Gets all the Processor performance counters.