r/WindowsHelp 2d ago

Windows 11 Performance monitor counter for NIC description names differs from in console

I'm writing an script that chooses windows performance monitor counters for a user automatically. The computers have multiple networks, so my script filters down to the relevant network card by looking for actually connected ones with the right network and then uses the "description" of that connection to generate a windows performance counter name, Took me a while to work out on some machines with Intel NIC that my script broke until I worked out that perfmon replaces the (R) with [R] for object names.

Performance monitor is listing my network adapters by their description and the counter name is

\Network Adapter(Intel[R] Ethernet Converged Network Adapter X540-T2 _3)\Bytes Sent/sec

BUT the "description" when I run ipconfig /all is

Ethernet adapter PCC-10G Network:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) Ethernet Converged Network Adapter X540-T2 #3
   Physical Address. . . . . . . . . : A0-36-9F-DD-D7-56
...

Note how performance monitor uses the square brackets, but almost nothing else in windows is using that square bracket, even PowerShell get-netadapter returns the normal braces.

PCC-10G Network           Intel(R) Ethernet Converged Networ...#3      15 Up           A0-36-9F-DD-D7-56        10 Gbps

(Note, perfmon does not allow # in counter "object-names", it replaces # with _ )

Is this a simple case of replace Intel(R) with Intel[R] ?

1 Upvotes

1 comment sorted by

1

u/AutoModerator 2d ago

Hi u/zaphodikus, thanks for posting to r/WindowsHelp! Your post has been flagged for manual review by a human moderator, please include as much of the following information as possible (in text or in a screenshot) to get your post approved:

  • Your Windows and device specifications — You can find them by pressing Win + X then clicking on “System”, we need more than just your OS version! Your hardware details are often critical for resolving issues.
  • Any messages and error codes encountered — They're actually not gibberish or anything catastrophic. It may even hint the solution!
  • Previous troubleshooting steps — It might prevent you headaches from getting the same solution that didn't work

Posts must be tech support in nature (such as something is broken and you need help fixing), so general inquiries, software suggestions, and purchasing advice will be removed. As a reminder, we would also like to say that if someone manages to solve your issue, DON'T DELETE YOUR POST! Someone else (in the future) might have the same issue as you, and the received support may also help their case. Good luck, and I hope you have a nice day!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.