Health check commands
Exchange Server 2013 and 2016 provide test cmdlets to test a lot of different scenarios. In order to get a list of the test cmdlets available, use the following command. I have used the Where-Object
filter to filter out the test cmdlets from other modules:
Get-Command –Verb Test | where-object module –match Exchange01.contoso.com
Here, we will cover some of the health check cmdlets available with Exchange 2013 and 2016. The first step is to create a test user mailbox, which is required by some of these test cmdlets. The script provided for this purpose and is called new-TestCasConnectivityUser.ps1
; it is located in %ExchangeInstallPath%Scripts
folder. Once executed with no parameters, it will prompt you for a password for the test account and create the user.
Test-ActiveSyncConnectivity
Now, let's test the ActiveSync connectivity on the client access server Exchange01
. For this, we will use the Test-ActiveSyncConnectivity
cmdlet, which simulates an...