O'Reilly logo

Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition by Mike Pfeiffer, Jonas Andersson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ActiveSync connectivity to a CAS server using the Test-ActiveSyncConnectivity 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required