Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Reporting on active OWA and RPC connections


One of the nice things about using PowerShell to manage Exchange is that you have a great deal of flexibility when it comes to solving problems. When the Exchange Management Shell does not provide a cmdlet that specifically meets your needs, you can often tap into other resources accessible through PowerShell. This recipe provides a great example for this. In this section, we'll use PowerShell to query performance counter data to determine the number of active OWA and RPC connections on one or more CAS servers.

How to do it...

  1. To determine the number of users currently logged into OWA on a CAS server, use the following command syntax:

    Get-Counter –Counter '\\cas1\MSExchange OWA\Current Users'

    This retrieves the total number of users logged into OWA on the CAS1 server. The output from this command will look similar to the following:

    Timestamp                 CounterSamples
    ---------                 --------------
    11/30/2010 11:57:59 AM    \\cas1\msexchange...