Book Image

Microsoft Exchange Server Powershell Cookbook (Update)

Book Image

Microsoft Exchange Server Powershell Cookbook (Update)

Overview of this book

Table of Contents (21 chapters)
Microsoft Exchange Server PowerShell Cookbook Third Edition
Credits
About the Authors
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, which are accessible through PowerShell. This recipe provides a great example for this. In this section, we'll use PowerShell to query the performance counter data to determine the number of active OWA and HTTP/RPC (Outlook Anywhere) connections on one or more Mailbox servers.

How to do it...

Let's see how to report on active OWA and RPC connections using the following steps:

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

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

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