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
About the Author
About the Reviewer

Database Availability Group Maintenance tasks

In Exchange 2010, we used to use scripts, such as StartDagServerMaintenance.ps1 and StopDagServerMaintenance.ps1, to put a server and get it out of the maintenance mode. In essence, these scripts are used to move all the active databases to another DAG member and mark this server as unavailable.

In Exchange 2013 and 2016, putting a server in maintenance mode will even tell other components, such as Transport or Unified Messaging Call Router, and more, not to send request to that particular server while performing maintenance. This includes moving all the active databases from that server and ensuring that the database doesn't failback during the maintenance. Also, if that server is working as a Primary Active Manager, you need to move the role off the server as well.

Let's understand the role of Active manager before we go any further. On Exchange servers that are members of a DAG, there are two Active Manager Roles Primary Active Manager (PAM...