How can I get a list of all WMI performance counters classes on a given server, to use in scripts for monitoring purposes.
I know one can use the performance monitor, but the classes displayed don't match the name of those available via WMI PerfFormattedData
classes.
The Get-Counters
offer some advantages over the Get-CimInstance
commandlet, such as passing an array of counters, but the returned counters are not script friendly.
Using powershell is pretty easy and quick with that command:
Or Redirect to a file:
and then one can discover the fields of an individual class: