1.通过以下命令查询用户连接的数量和CAS服务器
2.查询当前访问协议的连接数:
a.基于CAS上的性能监视器,增加相应的计数器实现:
RPC连接数(最近 2 分钟之内进行过某些活动的唯一用户数):
MSExchange RpcClientAccess\Active User Count
RPC连接数(显示所维护的客户端连接总数)
MSExchange RpcClientAccess\Connection Count
OWA登录用户数:
\MSExchange OWA\Current Unique Users
Outlook anywhere 连接CAS数:
RPC/HTTP Proxy\Current Number of Incoming RPC over HTTP Connections
Outlook anywhere 连接MBS数:
RPC/HTTP Proxy\Current Number of Unique Users
Exchange ActiveSync连接CAS数:
MSExchange ActiveSync\Requests/sec
Pop3连接数:
MSExchangePop3\Connections Current"
Imap4连接数:
MSExchangeImap4\Connections Current
b.基于以上的计数器,直接使用Get-Counter查询,如:
Get-Counter “MSExchange RpcClientAccess\Active User Count”
Get-ClientAccessServer | Get-Counter MSExchange RpcClientAccess\Active User Count
c.还可以参考mike_pfeiffer的文章,写一个脚本定期查询:
http://www.mikepfeiffer.net/2011/04/determine-the-number-of-active-users-on-exchange-2010-client-access-servers-with-powershell/
【参考资料】
http://www.mikepfeiffer.net/2011/04/determine-the-number-of-active-users-on-exchange-2010-client-access-servers-with-powershell/
http://technet.microsoft.com/zh-CN/library/ff367877(v=exchg.141).aspx
http://oxfordsbsguy.com/2013/06/20/powershell-identify-the-number-of-users-connected-to-a-exchange-2010-cas-server/