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?

3
  • From my research, there's a JET database that WINS uses...there's a good place to start looking.
    – Nathan C
    Jun 19, 2013 at 17:03
  • Per 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, 2013 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, 2013 at 19:45

1 Answer 1

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

6
  • -1 for not explaining things.
    – tony roth
    Jun 19, 2013 at 20:00
  • 2
    @tonyroth What's there to explain? netsh wins server show statistics returns the statistics.
    – Wesley
    Jun 19, 2013 at 20:15
  • It is beyond obvious what his solution was, and I can't actually think of a better way to explain it. Jun 19, 2013 at 20:16
  • lol no screen shot for me!
    – tony roth
    Jun 19, 2013 at 20:18
  • That would do it!
    – MDMarra
    Jun 19, 2013 at 20:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .