Get Total Active ASP.NET Session Count via WMI
How can I get a count of the total number of active ASP.NET sessions via WMI? 开发者_开发技巧I'm using ASP.NET 4.0 on Windows Server 2008 R2.
use the WMI query - "Select SessionsActive from Win32_PerfRawData_ASPNET_ASPNETApplications"
Edit - included link on accessing remote machines
This should answer the comment on remote machines,
http://msdn.microsoft.com/en-us/library/ms257337(v=vs.80).aspx
精彩评论