Introduction – Microsoft Exchange Server 2016 PowerShell Cookbook

This book contains task-based, immediately applicable recipes to manage and maintain your Microsoft Exchange 2016 environment using Windows PowerShell 5 and the Exchange Management Shell.

This book focuses on automating routine tasks and solving common problems.

The Exchange Management Shell provides many cmdlets. This book focuses on common scenarios that are relevant to real-world situations. These recipes will be easy to use, so you can get the job done quickly. The techniques you’ll learn also allow you to create your own one-liners or scripts.

The chapters of the book are outlined in a very presentable manner.

Chapter 1. PowerShell Key Concepts introduces many core PowerShell concepts like command syntax and parameters. It also explains how to work with the pipeline and loops. These topics provide the basis for each chapter’s code samples.

Chapter 2. Exchange Management Shell Command Tasks, covers tasks as well as general techniques for managing Exchange via command line. The topics include setting up remote shell connections, exporting files to external files, sending emails from scripts, as well as scheduling tasks to run with Task Scheduler.

Chapter 3, Managing recipients, covers the most commonly used recipient management tasks such as creating mailboxes, distribution group, and contact lists. Learn how to import user photos and manage server-side mailbox rules.

Chapter 4, Managing Mailboxes explains how to manage mailboxes. This includes moving mailboxes and importing and exporting data. It also demonstrates how to detect and repair corrupt mailboxes. You’ll also learn how to restore and delete items from a mailbox, and manage public folders.

Chapter 5, Distribution Groups & Address Lists, explains more about distribution group management. Distribution group reporting, distribution groups naming policies and the ability for end users to manage distribution groups membership are some of the topics covered. Learn how to create Hierarchical Address Books and Address Lists.

Chapter 6, Mailbox Database Administration, explains how to adjust database limits and settings. This chapter also covers the generation of reports for mailbox database sizes, average mailbox size per table, and backup status.

Chapter 7, Managing Client Access, addresses the management of ActiveSync and OWA, POP and IMAP, as well as how to configure these components in Exchange 2016. We will also examine how to control connections from different clients, including ActiveSync devices.

Chapter 8, Managing Transport Servers, explains the various methods you can use to manage mail flow within an Exchange organization. Learn how to set up send and receive connectors and allow application servers to relay mail. Search message tracking logs and manage transport queues.

Chapter 9, Exchange Security introduces the Role Based Access Control(RBAC) permissions model. Learn how to create custom RBAC role for administrators and end-users, how to manage mailbox permissions, and how to implement SSL certificates.

Chapter 10, Compliance and Audit Logging covers Exchange 2016’s compliance and auditing features. This chapter covers topics such as Data Loss Prevention and Archive Mailboxes. It also includes mailbox audit logging and administrator topics.

Chapter 11, High Availability, discusses the management and implementation of Database Availability Groups. The topics include creating DAGs and adding mailbox database copies. Automatic Reseed is also covered.

Chapter 12, Monitoring Exchange Health, explains how to monitor and check the health of an Exchange environment. It uses the built-in health probes and test commands and several custom-built reports to monitor mailbox queues and redundancy.

Chapter 13 – Integration explains the different types of integrations that Exchange Server can establish with Skype for Business or Office Online Server. Finally, we will cover how to validate an Exchange Hybrid configuration.

Chapter 14 – Scripting with Exchange Web Services Managed API introduces advanced scripting topics which leverage Exchange Web Services. This chapter will teach you how to create scripts and functions beyond what the Exchange Management Shell cmdlets can do.

Appendix A: Common Shell Information is found in Appendix A. This appendix can be used to reference commonly used automatic shell variables, type accelerators, and a list scripts that are included with Exchange 2016.

In addition, the common filterable properties that shell cmdlets can support and include filter parameters are described.

Appendix B: As a reference to the Keyword Query Language (KQL), Appendix B, Query Syntaxes should be used. You will find many examples that you can use in the real world.

For Whom this Book is Ideal For?

This book, Microsoft Exchange Server 2016 PowerShell Cookbook, is intended for messaging professionals who are looking to build real-world scripts using Windows PowerShell 5.o or the Exchange Management Shell.

This book is ideal for network administrators and system administrators who are responsible for maintaining Exchange Server 2016.

Microsoft Exchange Server 2016 PowerShell Cookbook, covers all core Exchange 2016 server roles. It requires a working knowledge and understanding of supporting technologies such as Active Directory and Windows Server 2012 R2 (or 2016).

The book covers all aspects of Exchange 2016 on-premises, with the exception of validation of Exchange Hybrid configuration.

What is not covered in this book?

We will not be covering Microsoft’s hosted Exchange Online in Office 365.

The concepts in this book will help you get started with the platform, as it will teach you PowerShell’s command syntaxes and object-based nature.

You can visit Microsoft’s article to read about Changing Computer State.