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
  • 55,011
  • 9
  • 138
  • 197
  • From my research, there's a JET database that WINS uses...there's a good place to start looking. – Nathan C Jun 19 '13 at 17:03
  • Per http://support.microsoft.com/kb/168712 it looks like there's info in the registry and under `C:\Windows\system32\Wins` that might be useful. I didn't post an answer because I don't have WINS ;) – Nathan C Jun 19 '13 at 17:06
  • Are you trying to find clients that may still be using wins? if so we just looked at the firewall logs. – tony roth Jun 19 '13 at 19:45

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
  • 32,320
  • 9
  • 80
  • 116
Ryan Ries
  • 55,011
  • 9
  • 138
  • 197