Wednesday, June 3, 2015

How to find out “Current Connections” and “Current Anonymous Users” on web server (IIS)?



The Win32_PerfFormattedData_W3SVC_WebService formatted data class provides data from performance counters that monitor the World Wide Web Publishing Service.

Definition:

  • CurrentConnections - Current number of connections established with the web service.
  • CurrentAnonymousUsers - Number of users who currently have a connection using any of the web service.

Execute following commands one by one in powershell prompt (powershell) to get “CurrentConnections” and “CurrentAnonymousUsers”,

Get-WmiObject -Class Win32_PerfFormattedData_W3SVC_WebService -ComputerName <Your server hostname> | Where {$_.Name -eq "_Total"} | % {$_.CurrentConnections}


Get-WmiObject -Class Win32_PerfFormattedData_W3SVC_WebService -ComputerName <Your server hostname> | Where {$_.Name -eq "_Total"} | % {$_.CurrentAnonymousUsers}

Replace <Your server hostname> with hostname of your web server.

For more knowledge about Win32_PerfFormattedData_W3SVC_WebService properties, go through following link,

No comments:

Post a Comment