How to know the active session counts for a particular website hosted in IIS using PowerShell How to know the active session counts for a particular website hosted in IIS using PowerShell powershell powershell

How to know the active session counts for a particular website hosted in IIS using PowerShell


$ServerName = 'IIs1'$SiteName = 'default web site'get-counter "\\$ServerName\web service($SiteName)\current connections"