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

Troubleshooting the Client Access Server role


The Exchange Management Shell provides several built-in cmdlets that you can use to troubleshoot and diagnose issues. The Client Access Server role has a number of cmdlets that can be used to perform tests on several different services. In this recipe, we'll take a look at how you can use these cmdlets to monitor and troubleshoot the Client Access Server role.

How to do it...

  1. We can test RPC connectivity to a CAS server using the Test-OutlookConnectivity cmdlet. To specify a mailbox that the cmdlet should use, we'll need to provide the credentials for that user:

    $user = "contoso\administrator"
    $pass = ConvertTo-SecureString -AsPlainText "P@ssw0rd01" -Force
    $creds = New-Object System.Management.Automation.PSCredential `
    -ArgumentList $user,$pass
  2. After we have the credential object created, we can try to connect using RPC:

    Test-OutlookConnectivity -Identity administrator `
    -Protocol:TCP `
    -MailboxCredential $creds
  3. We can also verify Outlook Anywhere...