<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Exchange 2010 CAS RPC &amp; OWA active connections</title>
	<atom:link href="http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/feed/" rel="self" type="application/rss+xml" />
	<link>http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/</link>
	<description>Blog technologii MS Exchange Server</description>
	<lastBuildDate>Thu, 20 Aug 2015 06:37:04 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>By: Remigiusz Szatkowski</title>
		<link>http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/#comment-143985</link>
		<dc:creator><![CDATA[Remigiusz Szatkowski]]></dc:creator>
		<pubDate>Tue, 13 May 2014 08:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=4004#comment-143985</guid>
		<description><![CDATA[Just run $Report &#124; Export-CSV d:\scripts\data.csv]]></description>
		<content:encoded><![CDATA[<p>Just run $Report | Export-CSV d:\scripts\data.csv</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/#comment-143675</link>
		<dc:creator><![CDATA[Henrik]]></dc:creator>
		<pubDate>Mon, 12 May 2014 09:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=4004#comment-143675</guid>
		<description><![CDATA[Thanks for the script!
How can I export the result to a csv-fil? I would like to shedule the script to run every 10 min and collect the data.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the script!<br />
How can I export the result to a csv-fil? I would like to shedule the script to run every 10 min and collect the data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remigiusz Szatkowski</title>
		<link>http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/#comment-91734</link>
		<dc:creator><![CDATA[Remigiusz Szatkowski]]></dc:creator>
		<pubDate>Fri, 16 Aug 2013 14:11:47 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=4004#comment-91734</guid>
		<description><![CDATA[try this it should work:
Function New-Array {,$args}
$Report = new-array

$CASServers = Get-ClientAccessServer &#124; select name

Foreach ($srv in $CASServers){
$RPC = Get-Counter “\MSExchange RpcClientAccess\User Count” -ComputerName $srv.name
$OWA = Get-Counter “\MSExchange OWA\Current Unique Users” -ComputerName $srv.name
$ASY = Get-Counter “\MSExchange ActiveSync\Current Requests” -ComputerName $srv.name
$cas = New-Object System.Object
$cas &#124; Add-Member -type NoteProperty -name Server -value $($srv.name)
$cas &#124; Add-Member -type NoteProperty -name RPCClientAccess -value $($RPC.CounterSamples[0].CookedValue)
$cas &#124; Add-Member -type NoteProperty -name OWA -value $($OWA.CounterSamples[0].CookedValue)
$cas &#124; Add-Member -type NoteProperty -name ActiveSync -value $($ASY.CounterSamples[0].CookedValue)

$Report += $cas
}

$Report]]></description>
		<content:encoded><![CDATA[<p>try this it should work:<br />
Function New-Array {,$args}<br />
$Report = new-array</p>
<p>$CASServers = Get-ClientAccessServer | select name</p>
<p>Foreach ($srv in $CASServers){<br />
$RPC = Get-Counter “\MSExchange RpcClientAccess\User Count” -ComputerName $srv.name<br />
$OWA = Get-Counter “\MSExchange OWA\Current Unique Users” -ComputerName $srv.name<br />
$ASY = Get-Counter “\MSExchange ActiveSync\Current Requests” -ComputerName $srv.name<br />
$cas = New-Object System.Object<br />
$cas | Add-Member -type NoteProperty -name Server -value $($srv.name)<br />
$cas | Add-Member -type NoteProperty -name RPCClientAccess -value $($RPC.CounterSamples[0].CookedValue)<br />
$cas | Add-Member -type NoteProperty -name OWA -value $($OWA.CounterSamples[0].CookedValue)<br />
$cas | Add-Member -type NoteProperty -name ActiveSync -value $($ASY.CounterSamples[0].CookedValue)</p>
<p>$Report += $cas<br />
}</p>
<p>$Report</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GK</title>
		<link>http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/#comment-90691</link>
		<dc:creator><![CDATA[GK]]></dc:creator>
		<pubDate>Fri, 09 Aug 2013 12:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=4004#comment-90691</guid>
		<description><![CDATA[I am trying to add ActiveSync to this one....

$CASServers = Get-ClientAccessServer &#124; select name

Foreach ($srv in $CASServers){
 $RPC = Get-Counter &quot;\MSExchange RpcClientAccess\User Count&quot; -ComputerName $srv.name
 $OWA = Get-Counter &quot;\MSExchange OWA\Current Unique Users&quot; -ComputerName $srv.name
 $ASY = Get-Counter “\MSExchange ActiveSync\Current Requests” -ComputerName $srv.name
 New-Object PSObject -Property @{
 Server = $srv.name
 &quot;RPC Client Access&quot; = $RPC.CounterSamples[0].CookedValue
 &quot;Outlook Web App&quot; = $OWA.CounterSamples[0].CookedValue
 &quot;ActiveSync&quot; = $ASY.CounterSamples[0].CookedValue
 }
}

It works well except the part that it gives me activesync first and then server name.]]></description>
		<content:encoded><![CDATA[<p>I am trying to add ActiveSync to this one&#8230;.</p>
<p>$CASServers = Get-ClientAccessServer | select name</p>
<p>Foreach ($srv in $CASServers){<br />
 $RPC = Get-Counter &#8220;\MSExchange RpcClientAccess\User Count&#8221; -ComputerName $srv.name<br />
 $OWA = Get-Counter &#8220;\MSExchange OWA\Current Unique Users&#8221; -ComputerName $srv.name<br />
 $ASY = Get-Counter “\MSExchange ActiveSync\Current Requests” -ComputerName $srv.name<br />
 New-Object PSObject -Property @{<br />
 Server = $srv.name<br />
 &#8220;RPC Client Access&#8221; = $RPC.CounterSamples[0].CookedValue<br />
 &#8220;Outlook Web App&#8221; = $OWA.CounterSamples[0].CookedValue<br />
 &#8220;ActiveSync&#8221; = $ASY.CounterSamples[0].CookedValue<br />
 }<br />
}</p>
<p>It works well except the part that it gives me activesync first and then server name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason</title>
		<link>http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/#comment-86566</link>
		<dc:creator><![CDATA[jason]]></dc:creator>
		<pubDate>Thu, 11 Jul 2013 13:28:30 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=4004#comment-86566</guid>
		<description><![CDATA[Carl,
Your script worked a little better by specifing the actual servers.  I&#039;m guessing my 2007 cas servers were causing the issue.]]></description>
		<content:encoded><![CDATA[<p>Carl,<br />
Your script worked a little better by specifing the actual servers.  I&#8217;m guessing my 2007 cas servers were causing the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason</title>
		<link>http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/#comment-86339</link>
		<dc:creator><![CDATA[jason]]></dc:creator>
		<pubDate>Wed, 10 Jul 2013 00:34:09 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=4004#comment-86339</guid>
		<description><![CDATA[I will try again tomorrow.  It did however return our legacy 2007 cas servers when I ran the Get-ClientAccessServer &#124; select name
 command.  maybe the full script doesn&#039;t like the 07 servers.

This command worked fine when i used the casservername of the cas server i was logged into:
Get-Counter “\MSExchange RpcClientAccess\User Count” -ComputerName casservername

I will try tomorrow with a different cas server which I&#039;m not logged into.]]></description>
		<content:encoded><![CDATA[<p>I will try again tomorrow.  It did however return our legacy 2007 cas servers when I ran the Get-ClientAccessServer | select name<br />
 command.  maybe the full script doesn&#8217;t like the 07 servers.</p>
<p>This command worked fine when i used the casservername of the cas server i was logged into:<br />
Get-Counter “\MSExchange RpcClientAccess\User Count” -ComputerName casservername</p>
<p>I will try tomorrow with a different cas server which I&#8217;m not logged into.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remigiusz Szatkowski</title>
		<link>http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/#comment-86310</link>
		<dc:creator><![CDATA[Remigiusz Szatkowski]]></dc:creator>
		<pubDate>Tue, 09 Jul 2013 20:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=4004#comment-86310</guid>
		<description><![CDATA[You should get your cas server names in variable $CASServers 
$CASServers = Get-ClientAccessServer &#124; select name
then run $CASServers you should get list of your cas servers.
try to run 
Get-Counter “\MSExchange RpcClientAccess\User Count” -ComputerName casservername
where casservername use cas server name where you are logged, do you get any value ? 
next run again Get-Counter “\MSExchange RpcClientAccess\User Count” -ComputerName casservername 
but use as casservername other cas server name where you are now not logged, will you get any value ?]]></description>
		<content:encoded><![CDATA[<p>You should get your cas server names in variable $CASServers<br />
$CASServers = Get-ClientAccessServer | select name<br />
then run $CASServers you should get list of your cas servers.<br />
try to run<br />
Get-Counter “\MSExchange RpcClientAccess\User Count” -ComputerName casservername<br />
where casservername use cas server name where you are logged, do you get any value ?<br />
next run again Get-Counter “\MSExchange RpcClientAccess\User Count” -ComputerName casservername<br />
but use as casservername other cas server name where you are now not logged, will you get any value ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason</title>
		<link>http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/#comment-86306</link>
		<dc:creator><![CDATA[jason]]></dc:creator>
		<pubDate>Tue, 09 Jul 2013 19:47:21 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=4004#comment-86306</guid>
		<description><![CDATA[Both those commands worked fine and I subbed the -ComputerName actualservername.
I&#039;m not a scripting guru so do I need to sub my actual cas server host names in the script above?]]></description>
		<content:encoded><![CDATA[<p>Both those commands worked fine and I subbed the -ComputerName actualservername.<br />
I&#8217;m not a scripting guru so do I need to sub my actual cas server host names in the script above?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remigiusz Szatkowski</title>
		<link>http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/#comment-86303</link>
		<dc:creator><![CDATA[Remigiusz Szatkowski]]></dc:creator>
		<pubDate>Tue, 09 Jul 2013 19:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=4004#comment-86303</guid>
		<description><![CDATA[Hi 
I&#039;ve checked this script with Exchange 2010 SP2 RU5v2 and it works, but I don&#039;t use HLB. 
In your environment with HLB can you try to run:
Get-ClientAccessServer &#124; select name
Will you get all yours CAS servers ? 
next try to run:
Get-Counter &quot;\MSExchange RpcClientAccess\User Count&quot; -ComputerName casservername
Did you get any value or just error ? 
maybe you don&#039;t have needed rights or WinRM enabled ?
Maybe HLB is the problem, but I can&#039;t check that.]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
I&#8217;ve checked this script with Exchange 2010 SP2 RU5v2 and it works, but I don&#8217;t use HLB.<br />
In your environment with HLB can you try to run:<br />
Get-ClientAccessServer | select name<br />
Will you get all yours CAS servers ?<br />
next try to run:<br />
Get-Counter &#8220;\MSExchange RpcClientAccess\User Count&#8221; -ComputerName casservername<br />
Did you get any value or just error ?<br />
maybe you don&#8217;t have needed rights or WinRM enabled ?<br />
Maybe HLB is the problem, but I can&#8217;t check that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remigiusz Szatkowski</title>
		<link>http://exchangeblog.pl/en/2013/07/exchange-2010-cas-rpc-owa-active-connections/#comment-86302</link>
		<dc:creator><![CDATA[Remigiusz Szatkowski]]></dc:creator>
		<pubDate>Tue, 09 Jul 2013 19:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=4004#comment-86302</guid>
		<description><![CDATA[Hi 
To identify which users are connected to which CAS server you can try to use Get-LogonStatistics
You will get information about ClientName - CAS server when you specirfy ApplicationId like Client=MSExchangeRPC or ApplicationId like Client=OWA. 
Then you need to add LogonTime and you will get what you want.]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
To identify which users are connected to which CAS server you can try to use Get-LogonStatistics<br />
You will get information about ClientName &#8211; CAS server when you specirfy ApplicationId like Client=MSExchangeRPC or ApplicationId like Client=OWA.<br />
Then you need to add LogonTime and you will get what you want.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
