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.