3

I know WINS is ancient. No need to remind me. For what it's worth, this effort is going toward a project to retire it from the environment altogether.

But before I can do that - I need to be able to scriptomatically or programmatically gather statistics from it.

See the screenshot below:

enter image description here

See "Total querries," (lol at the misspelling) "Record found", etc.?

How do I get at those values? They're not in Perfmon, they're not in any WMI class I've found. I can't find any related COM objects. There are counters like "queries/sec," but I don't care about queries/sec. I want total queries. Just like in the screenshot above.

I'll P/Invoke Win32 if I have to... just... where do I get these metrics?

Ryan Ries
  • 56,311

1 Answers1

6

Found what I was looking for with netsh wins server show statistics. I'll have to parse some output text, but at least I can script it.

WINS stats

Wesley
  • 33,060
Ryan Ries
  • 56,311