Using Performance Monitor counter IDs instead of the counter names

Mikhail Firsov 1,876 Reputation points
2020-07-30T11:39:18.67+00:00

Hello,

As you already may know each Performance Monitor counter has the corresponding ID which you can find in the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009\Counter

So theoretically we can get the counter value by typing

Get-Counter -Counter "\2\10" instead of

Get-Counter -Counter "\System\File Read Operations/sec" - and it does work:

14546-1.png

But I don't understand why other counters may not be read by such method:

Get-Counter -Counter "\System\File Read Operations/sec"

14651-2.png

What;s wrong with the second query?

Thank you in advance,
Michael

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,601 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. Mikhail Firsov 1,876 Reputation points
    2020-07-30T13:22:04.287+00:00

    Here's one more example:
    14681-3-1.png

    0 comments No comments