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

Managing Transport rules and adding disclaimers


Transport Rules offer a very granular control to IT admins over the mail flow in your Exchange organization. It can help to build ethical walls between the groups of users; it can protect messages using Active Directory and/or Azure Rights Management Services to encrypt the content and apply disclaimers to messages.

In the first example, we will see how to restrict two groups of users from talking to each other using Exchange Transport Rules. In this case, we will block the e-mail flow between Sales and Research group members except if the message is coming from Peter Houston or Holly Holt who are heading these two groups. You can use multiple conditions (predicates) to build a rule that meets your organization's requirements:

New-TransportRule "BlockMessagesBetweenResearchAndSales" -BetweenMemberOf1 "Sales_SG" -BetweenMemberOf2 "Research_SG" -ExceptIfFrom "Peter Houston","Holly Holt" -RejectMessageEnhancedStatusCode "5.7.1" -RejectMessageReasonText...