I wanted to get the current number of connected users and used bandwidth of a publishing point on windows streaming media services. I had been watching this with the performance monitor, but I wanted something I could manipulate.
http://www.jkrb.de/jmk/docs/Perl5/PerfLib/PerfLib.html
http://docs.activestate.com/activeperl/5.8/lib/Win32/PerfLib.html
http://www.xav.com/perl/site/lib/Win32/PerfLib.html
http://technet.microsoft.com/en-us/library/cc730642%28WS.10%29.aspx
Sample code follows.
