Book Image

Microsoft Exchange Server PowerShell Essentials

By : Biswanath Banerjee
Book Image

Microsoft Exchange Server PowerShell Essentials

By: Biswanath Banerjee

Overview of this book

PowerShell has become one of the most important skills in an Exchange administrator's armory. PowerShell has proved its mettle so widely that, if you're not already starting to learn PowerShell, then you're falling behind the industry. It isn't difficult to learn PowerShell at all. In fact, if you've ever run commands from a CMD prompt, then you'll be able to start using PowerShell straightaway. This book will walk you through the essentials of PowerShell in Microsoft Exchange Server and make sure you understand its nitty gritty effectively. You will first walk through the core concepts of PowerShell and their applications. This book discusses ways to automate tasks and activities that are performed by Exchange administrators and that otherwise take a lot of manual effort. Microsoft Exchange PowerShell Essentials will provide all the required details for Active Directory, System, and Exchange administrators to help them understand Windows PowerShell and build the required scripts to manage the Exchange Infrastructure.
Table of Contents (17 chapters)
Microsoft Exchange Server PowerShell Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

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 ActiveSync connection...