Current Exchange CAS user counts

Below you’ll find a slight modification to a post from Mike Pfeiffer on querying Exchange 2010 CAS servers to obtain the current count of OWA and RPC clients. function Get-CASActiveUsers { [CmdletBinding()] param( [Parameter(Position=0, ValueFromPipelineByPropertyName=$true, Mandatory=$true)] [String[]]$Name ) process { $Name | %{ $RPC = Get-Counter "\MSExchange RpcClientAccess\User Count" -ComputerName $_ $OWA = Get-Counter "\MSExchange …